get_active_plan() public static method

Get the plan that this Jetpack site is currently using
public static get_active_plan ( ) : array
return array Active Jetpack plan details
Example #1
0
 /**
  * Determine whether the active plan supports a particular feature
  *
  * @uses Jetpack::get_active_plan()
  *
  * @access public
  * @static
  *
  * @return bool True if plan supports feature, false if not
  */
 public static function active_plan_supports($feature)
 {
     $plan = Jetpack::get_active_plan();
     if (in_array($feature, $plan['supports'])) {
         return true;
     }
     return false;
 }