cptui_extra_menu_items

Fires after the default submenu pages.

Description

do_action( 'cptui_extra_menu_items', (string) $parent_slug, (string) $capability ); 

Parameters (2)

0. $parent_slug (string)
Parent slug for Custom Post Type UI menu.
1. $capability (string)
Capability required to manage CPTUI settings.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'cptui_extra_menu_items', $parent_slug, $capability ); 
The following example is for adding a hook callback.
  1. // define the cptui_extra_menu_items callback 
  2. function action_cptui_extra_menu_items( $parent_slug, $capability ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'cptui_extra_menu_items', 'action_cptui_extra_menu_items', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'cptui_extra_menu_items', 'action_cptui_extra_menu_items', 10, 2 ); 

Defined (1)

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

/custom-post-type-ui.php  
  1. do_action( 'cptui_extra_menu_items', $parent_slug, $capability );