wp_terms_checklist_args
Filters the taxonomy terms checklist arguments.
Usage
add_filter( 'wp_terms_checklist_args', 'wp_kama_terms_checklist_args_filter', 10, 2 ); /** * Function for `wp_terms_checklist_args` filter-hook. * * @param array|string $args An array or string of arguments. * @param int $post_id The post ID. * * @return array|string */ function wp_kama_terms_checklist_args_filter( $args, $post_id ){ // filter... return $args; }
- $args(array|string)
- An array or string of arguments.
- $post_id(int)
- The post ID.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
wp_terms_checklist_args
wp-admin/includes/template.php 102
$params = apply_filters( 'wp_terms_checklist_args', $args, $post_id );