WP_Links_List_Table::column_visible() WordPress Method
The WP_Links_List_Table::column_visible() method is used to determine if a link is visible in the list table. If the link is not visible, the method will return an empty string.
WP_Links_List_Table::column_visible( object $link ) #
Handles the link visibility column output.
Parameters
- $link
(object)(Required)The current link object.
Source
File: wp-admin/includes/class-wp-links-list-table.php
public function column_visible( $link ) { if ( 'Y' === $link->link_visible ) { _e( 'Yes' ); } else { _e( 'No' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |