-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
helpers
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
open-graph
--
NONE
schema
--
NONE
twitter
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
asset-helper.php
2.52KB
Edit File
Delete File
Rename
author-archive-helper.php
3.448KB
Edit File
Delete File
Rename
blocks-helper.php
2.263KB
Edit File
Delete File
Rename
capability-helper.php
2.066KB
Edit File
Delete File
Rename
current-page-helper.php
11.897KB
Edit File
Delete File
Rename
date-helper.php
3.133KB
Edit File
Delete File
Rename
environment-helper.php
0.582KB
Edit File
Delete File
Rename
home-url-helper.php
0.752KB
Edit File
Delete File
Rename
image-helper.php
9.991KB
Edit File
Delete File
Rename
indexable-helper.php
4.595KB
Edit File
Delete File
Rename
indexable-to-postmeta-helper.php
5.364KB
Edit File
Delete File
Rename
indexing-helper.php
9.237KB
Edit File
Delete File
Rename
input-helper.php
0.646KB
Edit File
Delete File
Rename
language-helper.php
1.847KB
Edit File
Delete File
Rename
meta-helper.php
2.912KB
Edit File
Delete File
Rename
notification-helper.php
0.533KB
Edit File
Delete File
Rename
options-helper.php
3.143KB
Edit File
Delete File
Rename
pagination-helper.php
3.474KB
Edit File
Delete File
Rename
permalink-helper.php
1.256KB
Edit File
Delete File
Rename
post-helper.php
4.96KB
Edit File
Delete File
Rename
post-type-helper.php
3.438KB
Edit File
Delete File
Rename
primary-term-helper.php
1.366KB
Edit File
Delete File
Rename
product-helper.php
0.95KB
Edit File
Delete File
Rename
redirect-helper.php
1.424KB
Edit File
Delete File
Rename
request-helper.php
0.344KB
Edit File
Delete File
Rename
require-file-helper.php
0.298KB
Edit File
Delete File
Rename
robots-helper.php
0.514KB
Edit File
Delete File
Rename
sanitization-helper.php
1.031KB
Edit File
Delete File
Rename
short-link-helper.php
3.296KB
Edit File
Delete File
Rename
site-helper.php
0.553KB
Edit File
Delete File
Rename
string-helper.php
1.189KB
Edit File
Delete File
Rename
taxonomy-helper.php
3.036KB
Edit File
Delete File
Rename
url-helper.php
5.857KB
Edit File
Delete File
Rename
user-helper.php
3.675KB
Edit File
Delete File
Rename
wincher-helper.php
2.148KB
Edit File
Delete File
Rename
woocommerce-helper.php
0.858KB
Edit File
Delete File
Rename
wordpress-helper.php
0.5KB
Edit File
Delete File
Rename
wpdb-helper.php
0.924KB
Edit File
Delete File
Rename
<?php namespace Yoast\WP\SEO\Helpers; use WP_Taxonomy; use WP_Term; use WPSEO_Taxonomy_Meta; /** * A helper object for terms. */ class Taxonomy_Helper { /** * The options helper. * * @var Options_Helper */ private $options; /** * The string helper. * * @var String_Helper */ private $string; /** * Taxonomy_Helper constructor. * * @codeCoverageIgnore It only sets dependencies. * * @param Options_Helper $options The options helper. * @param String_Helper $string The string helper. */ public function __construct( Options_Helper $options, String_Helper $string ) { $this->options = $options; $this->string = $string; } /** * Checks if the requested term is indexable. * * @param string $taxonomy The taxonomy slug. * * @return bool True when taxonomy is set to index. */ public function is_indexable( $taxonomy ) { return ! $this->options->get( 'noindex-tax-' . $taxonomy, false ); } /** * Returns an array with the public taxonomies. * * @param string $output The output type to use. * * @return string[]|WP_Taxonomy[] Array with all the public taxonomies. * The type depends on the specified output variable. */ public function get_public_taxonomies( $output = 'names' ) { return \get_taxonomies( [ 'public' => true ], $output ); } /** * Retrieves the term description (without tags). * * @param int $term_id Term ID. * * @return string Term description (without tags). */ public function get_term_description( $term_id ) { return $this->string->strip_all_tags( \term_description( $term_id ) ); } /** * Retrieves the taxonomy term's meta values. * * @codeCoverageIgnore We have to write test when this method contains own code. * * @param WP_Term $term Term to get the meta value for. * * @return array|bool Array of all the meta data for the term. * False if the term does not exist or the $meta provided is invalid. */ public function get_term_meta( $term ) { return WPSEO_Taxonomy_Meta::get_term_meta( $term, $term->taxonomy, null ); } /** * Gets the passed taxonomy's slug. * * @param string $taxonomy The name of the taxonomy. * * @return string The slug for the taxonomy. Returns the taxonomy's name if no slug could be found. */ public function get_taxonomy_slug( $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( $taxonomy_object && \property_exists( $taxonomy_object, 'rewrite' ) && \is_array( $taxonomy_object->rewrite ) && isset( $taxonomy_object->rewrite['slug'] ) ) { return $taxonomy_object->rewrite['slug']; } return \strtolower( $taxonomy_object->name ); } /** * Returns an array with the custom taxonomies. * * @param string $output The output type to use. * * @return string[]|WP_Taxonomy[] Array with all the custom taxonomies. * The type depends on the specified output variable. */ public function get_custom_taxonomies( $output = 'names' ) { return \get_taxonomies( [ '_builtin' => false ], $output ); } }
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat