WPSEO_Yoast_Columns::display_links
Whether we are showing link columns on this overview page. This depends on the post being accessible or not.
Метод класса: WPSEO_Yoast_Columns{}
Хуков нет.
Возвращает
true|false. Whether the linking columns are shown
Использование
// private - только в коде основоного (родительского) класса $result = $this->display_links();
Код WPSEO_Yoast_Columns::display_links() WPSEO Yoast Columns::display links Yoast 26.3
private function display_links() {
$current_post_type = $this->get_current_post_type();
if ( empty( $current_post_type ) ) {
return false;
}
return WPSEO_Post_Type::is_post_type_accessible( $current_post_type );
}