"taxonomy", "label" => Utils::t( "Taxonomy" ), ], [ "id" => "menu", "label" => Utils::t( "Custom WP menu" ), ], [ "id" => "faqs", "label" => Utils::t( "FAQs (βETA-version)" ), ], ]; } static function get_images_support() { return get_option( Plugin::$slug . "_images_support", null ); } static function get_images_support_taxonomies() { return Utils::get( self::get_images_support(), "taxonomies", [] ); } static function get_images_support_custom_menus() { return Utils::get( self::get_images_support(), "is_custom_menus", false ); } static function taxonomy_has_images_support( $taxonomy ) { if ( $taxonomy === Utils::$woo_taxonomy_id ) { return true; } else { $taxonomies = self::get_images_support_taxonomies(); return in_array( $taxonomy, $taxonomies ); } } static function custom_menus_has_images_support() { return self::get_images_support_custom_menus() === true; } static function get_faqs_type() { return Plugin::$post_type . "_faq"; } static function get_faqs_taxonomy_type() { return self::get_faqs_type() . "_group"; } }