/** * Unregister nested shortcodes when not inside of [dev-info]. */ private static function unregister_nested_shortcodes() { foreach (DI_Item::get_shortcode_field_names() as $field_name) { remove_shortcode(self::SHORTCODE_PREFIX . '-' . self::field_name_to_shortcode_suffix($field_name)); } }
/** * Construct new instance of DI_Plugin. * * @param $item object The plugin item returned from the WP.org API. */ public function __construct($item) { parent::__construct($item); }