wordads_inpost_disable

The WordPress Core wordads inpost disable hook.

Description

add_filter( 'wordads_inpost_disable', (string) $return_true, (int) $int ); 

Parameters (2)

0. $return_true (string) => '__return_true'
The return true.
1. $int (int) => 20
The int.

Usage

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

Defined (3)

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

/modules/custom-post-types/portfolios.php  
  1. add_filter( 'wordads_inpost_disable', '__return_true', 20 ); 
  1. remove_filter( 'wordads_inpost_disable', '__return_true', 20 ); 
/modules/wordads/wordads.php  
  1. $disable = apply_filters( 'wordads_inpost_disable', false );