pmpro_custom_advanced_settings

Filter to add custom settings to the advanced settings page.

Description

apply_filters( 'pmpro_custom_advanced_settings', (array) $array ); 

Parameters (1)

0. $array (array) => array()
Array of settings, each setting an array with keys field_name, field_type, label, description.

Usage

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

Defined (2)

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

/adminpages/advancedsettings.php  
  1. $custom_settings = apply_filters('pmpro_custom_advanced_settings', array()); 
  1. $custom_fields = apply_filters('pmpro_custom_advanced_settings', array());