wpseo_admin_page_sitemap_post_types

Allow adding custom checkboxes to the admin sitemap page - Post Types tab.

Description

do_action( 'wpseo_admin_page_sitemap_post_types', (unknown) $yform, (unknown) $pt ); 

Parameters (2)

0. $yform (unknown)
The yform.
1. $pt (unknown)
The pt.

Usage

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

Defined (1)

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

/admin/views/tabs/sitemaps/post-types.php  
  1. do_action( 'wpseo_admin_page_sitemap_post_types', $yform, $pt );