cf_filter_addons_filter_addons

The Caldera Forms cf filter addons function.

Description

cf_filter_addons_filter_addons( $views ); 

Parameters (1)

0. $views
The views.

Usage

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

Defined (1)

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

/includes/filter_addon_plugins.php  
  1. function cf_filter_addons_filter_addons($views) { 
  2. global $status, $plugins; 
  3.  
  4. if( !empty( $plugins[caldera_forms] ) ) { 
  5. $class = ""; 
  6. if( $status == caldera_forms ) { 
  7. $class = 'current'; 
  8. $views[caldera_forms] = '<a class="' . $class . '" href="plugins.php?plugin_status=caldera_forms">' . __('Caldera Forms', 'caldera-forms') .' <span class="count">(' . count( $plugins[caldera_forms] ) . ')</span></a>'; 
  9. return $views;