hide_gravityview_promotion-gravity-forms-constant-contact

To hide the add, you can add a filter:.

Description

apply_filters( 'hide_gravityview_promotion-gravity-forms-constant-contact', (boolean) $class_exists ); 

'add_filter('hide_gravityview_promotion-gravity-forms-constant-contact', __return_true);'

Parameters (1)

0. $class_exists (boolean) => class_exists('GravityView_Plugin')
The class exists.

Usage

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

Defined (1)

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

/class-gf-constant-contact.php  
  1. $hide_promo = apply_filters( 'hide_gravityview_promotion-gravity-forms-constant-contact', class_exists('GravityView_Plugin') );