PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wpseo-news
/
classes
<?php /** * Yoast SEO: News plugin file. * * @package WPSEO_News */ /** * Class representing the excludable taxonomies for a certain post type. */ class WPSEO_News_Excludable_Taxonomies { /** * The post type. * * @var string */ protected $post_type; /** * Setting properties. * * @param string $post_type The post type. */ public function __construct( $post_type ) { $this->post_type = $post_type; } /** * Gets a list of taxonomies of which posts with terms of this taxonomy can be excluded from the sitemap. * * @return array Taxonomies of which posts with terms of this taxonomy can be excluded from the sitemap. */ public function get() { $taxonomies = get_object_taxonomies( $this->post_type, 'objects' ); return array_filter( $taxonomies, array( $this, 'filter_taxonomies' ) ); } /** * Filter to check whether a taxonomy is shows in the WordPress ui. * * @param WP_Taxonomy $taxonomy The taxonomy to filter. * * @return bool Whether or not the taxonomy is hidden in the WordPress ui. */ protected function filter_taxonomies( WP_Taxonomy $taxonomy ) { return $taxonomy->show_ui === true; } }
[+]
..
[-] upgrade-manager.php
[edit]
[-] sitemap.php
[edit]
[-] head.php
[edit]
[-] class-wpseo-news.php
[edit]
[-] class-sitemap-item.php
[edit]
[-] class-meta-box.php
[edit]
[-] sitemap-timezone.php
[edit]
[-] class-beacon-setting.php
[edit]
[-] meta-box.php
[edit]
[-] wpseo-news.php
[edit]
[-] class-product.php
[edit]
[-] javascript-strings.php
[edit]
[-] sitemap-images.php
[edit]
[-] class-head.php
[edit]
[-] class-sitemap.php
[edit]
[-] class-upgrade-manager.php
[edit]
[-] beacon-setting.php
[edit]
[-] class-admin-page.php
[edit]
[-] class-news-wrappers.php
[edit]
[-] class-sitemap-images.php
[edit]
[-] wrappers.php
[edit]
[-] sitemap-item.php
[edit]
[-] product.php
[edit]
[-] class-javascript-strings.php
[edit]
[-] schema.php
[edit]
[-] admin-page.php
[edit]
[-] excludable-taxonomies.php
[edit]
[-] class-sitemap-timezone.php
[edit]