WP_Posts_List_Table::_column_title
Method of the class: WP_Posts_List_Table{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->_column_title( $post, $classes, $data, $primary );
- $post(WP_Post) (required)
- .
- $classes(string) (required)
- .
- $data(string) (required)
- .
- $primary(string) (required)
- .
Changelog
| Since 4.3.0 | Introduced. |
WP_Posts_List_Table::_column_title() WP Posts List Table:: column title code WP 7.1
protected function _column_title( $post, $classes, $data, $primary ) {
$aria_label = $this->get_primary_column_aria_label( $post );
$aria_attr = ( '' !== $aria_label ) ? ' aria-label="' . esc_attr( $aria_label ) . '"' : '';
echo '<th scope="row" class="' . $classes . ' page-title" ', $data, $aria_attr, '>';
echo $this->column_title( $post );
echo $this->handle_row_actions( $post, 'title', $primary );
echo '</th>';
}