cf_filter_addons_do_filter_addons

The Caldera Forms cf filter addons do function.

Description

cf_filter_addons_do_filter_addons( $a ); 

Parameters (1)

0. $a
The a.

Usage

  1. if ( !function_exists( 'cf_filter_addons_do_filter_addons' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-forms/includes/filter_addon_plugins.php'; 
  3.  
  4. // The a. 
  5. $a = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf_filter_addons_do_filter_addons($a); 
  9.  

Defined (1)

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

/includes/filter_addon_plugins.php  
  1. function cf_filter_addons_do_filter_addons($a) { 
  2. global $plugins, $status; 
  3.  
  4. foreach($plugins['all'] as $plugin_slug=>$plugin_data) { 
  5. if( false !== strpos($plugin_data['Name'], 'Caldera Forms') || false !== strpos($plugin_data['Description'], 'Caldera Forms') ) { 
  6. $plugins[caldera_forms][$plugin_slug] = $plugins['all'][$plugin_slug]; 
  7. $plugins[caldera_forms][$plugin_slug]['plugin'] = $plugin_slug; 
  8. // replicate teh next step 
  9. if ( current_user_can( 'update_plugins' ) ) { 
  10. $current = get_site_transient( 'update_plugins' ); 
  11. if ( isset( $current->response[ $plugin_slug ] ) ) { 
  12. $plugins[caldera_forms][$plugin_slug]['update'] = true; 
  13.  
  14.  
  15. return $a;