PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wordpress-seo-premium.13.4.1
/
premium
/
classes
<?php /** * WPSEO Premium plugin file. * * @package WPSEO\Admin */ /** * Registers the prominent words as a taxonomy. */ class WPSEO_Premium_Prominent_Words_Registration implements WPSEO_WordPress_Integration { const TERM_NAME = 'yst_prominent_words'; /** * {@inheritdoc} */ public function register_hooks() { add_action( 'init', [ $this, 'register' ], 20 ); add_action( 'admin_init', [ $this, 'unregister' ] ); } /** * Removes the taxonomy from the registration. * * This makes sure that no unneeded queries are done relating these private terms. */ public function unregister() { if ( ! $this->is_visible() ) { unregister_taxonomy( self::TERM_NAME ); } } /** * Registers the prominent words taxonomy. */ public function register() { $prominent_words_support = new WPSEO_Premium_Prominent_Words_Support(); $prominent_words_post_types = $prominent_words_support->get_supported_post_types(); if ( $prominent_words_post_types === [] ) { return; } // REST API expects a numbered list of post types. $post_types = array_values( $prominent_words_post_types ); register_taxonomy( self::TERM_NAME, $post_types, $this->get_args() ); } /** * Retrieves the labels for the taxonomy. * * @return string[] The labels for the taxonomy. */ private function get_labels() { return [ 'name' => _x( 'Prominent words', 'Taxonomy General Name', 'wordpress-seo-premium' ), 'singular_name' => _x( 'Prominent word', 'Taxonomy Singular Name', 'wordpress-seo-premium' ), 'menu_name' => __( 'Prominent words', 'wordpress-seo-premium' ), 'all_items' => __( 'All prominent words', 'wordpress-seo-premium' ), 'new_item_name' => __( 'New prominent word', 'wordpress-seo-premium' ), 'add_new_item' => __( 'Add new prominent word', 'wordpress-seo-premium' ), 'edit_item' => __( 'Edit prominent word', 'wordpress-seo-premium' ), 'update_item' => __( 'Update prominent word', 'wordpress-seo-premium' ), 'view_item' => __( 'View prominent word', 'wordpress-seo-premium' ), 'separate_items_with_commas' => __( 'Separate prominent words with commas', 'wordpress-seo-premium' ), 'add_or_remove_items' => __( 'Add or remove prominent words', 'wordpress-seo-premium' ), 'choose_from_most_used' => __( 'Choose from the most used', 'wordpress-seo-premium' ), 'popular_items' => __( 'Popular prominent words', 'wordpress-seo-premium' ), 'search_items' => __( 'Search prominent words', 'wordpress-seo-premium' ), 'not_found' => __( 'Not Found', 'wordpress-seo-premium' ), 'no_terms' => __( 'No prominent words', 'wordpress-seo-premium' ), 'items_list' => __( 'Prominent words list', 'wordpress-seo-premium' ), 'items_list_navigation' => __( 'Prominent words list navigation', 'wordpress-seo-premium' ), ]; } /** * Retrieves the arguments for the taxonomy registration. * * @return array The arguments for the registration to WordPress. */ private function get_args() { return [ 'labels' => $this->get_labels(), 'hierarchical' => false, 'public' => false, 'show_ui' => $this->is_visible(), 'show_admin_column' => false, 'show_in_nav_menus' => false, 'show_tagcloud' => false, 'show_in_rest' => true, 'capabilities' => [ 'edit_terms' => 'edit_posts' ], ]; } /** * Determines if the prominent words should be visible in the menu. * * @return bool True if the prominent words should be shown. */ private function is_visible() { return ( defined( 'WPSEO_DEBUG' ) && WPSEO_DEBUG ); } }
[+]
..
[-] premium-prominent-words-link-endpoint.php
[edit]
[-] premium-prominent-words-recalculation.php
[edit]
[-] premium-orphaned-post-notifier.php
[edit]
[+]
redirect
[-] premium-prominent-words-support.php
[edit]
[-] premium-post-data-service.php
[edit]
[-] premium-assets.php
[edit]
[-] premium-redirect-service.php
[edit]
[-] facebook-profile.php
[edit]
[-] premium-prominent-words-link-service.php
[edit]
[-] .classes.php
[edit]
[-] premium-prominent-words-recalculation-notifier.php
[edit]
[-] premium-free-translations.php
[edit]
[-] premium-redirect-endpoint.php
[edit]
[-] premium-post-data-endpoint.php
[edit]
[-] premium-gsc.php
[edit]
[-] premium-prominent-words-language-support.php
[edit]
[-] premium-orphaned-content-support.php
[edit]
[-] premium-metabox.php
[edit]
[-] premium-link-suggestions-service.php
[edit]
[-] validation-error.php
[edit]
[-] premium-autoloader.php
[edit]
[-] social-previews.php
[edit]
[-] premium-prominent-words-versioning.php
[edit]
[+]
export
[-] multi-keyword.php
[edit]
[-] premium-link-suggestions-endpoint.php
[edit]
[-] premium-redirect-option.php
[edit]
[-] upgrade-manager.php
[edit]
[-] post-watcher.php
[edit]
[-] metabox-link-suggestions.php
[edit]
[-] premium-prominent-words-recalculation-endpoint.php
[edit]
[-] premium-expose-shortlinks.php
[edit]
[-] premium-asset-js-l10n.php
[edit]
[-] premium-import-manager.php
[edit]
[-] premium-prominent-words-endpoint.php
[edit]
[-] term-watcher.php
[edit]
[-] watcher.php
[edit]
[-] premium-prominent-words-registration.php
[edit]
[-] premium-orphaned-content-utils.php
[edit]
[-] premium-redirect-export-manager.php
[edit]
[-] premium-javascript-strings.php
[edit]
[-] validation-result.php
[edit]
[-] premium-register-capabilities.php
[edit]
[-] premium-stale-cornerstone-content-notification.php
[edit]
[-] product-premium.php
[edit]
[-] premium-keyword-export-manager.php
[edit]
[-] validation-warning.php
[edit]
[-] premium-stale-cornerstone-content-filter.php
[edit]
[-] premium-gsc-modal.php
[edit]
[-] premium-orphaned-post-query.php
[edit]
[-] premium-prominent-words-unindexed-post-query.php
[edit]
[-] premium-prominent-words-service.php
[edit]
[+]
views
[-] custom-fields-plugin.php
[edit]
[-] premium-orphaned-post-filter.php
[edit]
[-] premium-prominent-words-recalculation-service.php
[edit]