wp_terms_checklist_args

Filters the taxonomy terms checklist arguments.

Description

apply_filters( 'wp_terms_checklist_args', (array) $args, (int) $post_id ); 

Parameters (2)

0. $args (array)
An array of arguments.
1. $post_id (int)
The post id.

Usage

To run the hook, copy the example below.
  1. $args = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); 
  2.  
  3. if ( !empty( $args ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wp_terms_checklist_args callback 
  2. function filter_wp_terms_checklist_args( $args, $post_id ) { 
  3. // make filter magic happen here... 
  4. return $args
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wp_terms_checklist_args', 'filter_wp_terms_checklist_args', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wp_terms_checklist_args', 'filter_wp_terms_checklist_args', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/template.php  
  1. $params = apply_filters( 'wp_terms_checklist_args', $args, $post_id );