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.


Top ↑

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' );
		}
	}


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.