ms_model_pages_create_missing_page

Filter the new page_id.

Description

apply_filters( 'ms_model_pages_create_missing_page', (unknown) $new_id, (unknown) $type, (unknown) $data ); 

Parameters (3)

0. $new_id (unknown)
The new id.
1. $type (unknown)
The type.
2. $data (unknown)
The data.

Usage

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

Defined (2)

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

/app/model/class-ms-model-pages.php  
  1. $new_id = apply_filters( 
  1. return apply_filters(