public static function deprecate_add_on_methods() { if (defined('DOING_AJAX') && DOING_AJAX || defined('DOING_CRON') && DOING_CRON || defined('WP_INSTALLING') && WP_INSTALLING) { return; } $deprecated = GFAddOn::get_all_deprecated_protected_methods(); if (!empty($deprecated)) { foreach ($deprecated as $method) { _deprecated_function($method, '1.9', 'public access level'); } } }
public function has_deprecated_elements() { $deprecated = GFAddOn::get_all_deprecated_protected_methods(get_class($this)); if (!empty($deprecated)) { return true; } return false; }