Welcome, visitor! Log in
 

Source View: manage_{$screen->id}_columns

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
230  * @return array Containing the headers in the format id => UI String
231  */
232 function get_column_headers( $screen ) {
233      if ( is_string( $screen ) )
234           $screen = convert_to_screen( $screen );
235
236      global $_wp_column_headers;
237
238      if ( !isset( $_wp_column_headers[ $screen->id ] ) ) {
239           $_wp_column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() );
240      }
241
242      return $_wp_column_headers[ $screen->id ];
243 }
244
245 /**
246  * Get a list of hidden columns.
247  *
248  * @since 2.7.0