/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/modules
/schema
/snippets
/class-author.php
class Author implements Snippet {
/**
* Add Author entity in JSON-LD data.
*
* @link https://schema.org/Person
*
* @param array $data Array of JSON-LD data.
* @param JsonLD $jsonld JsonLD Instance.
*
* @return array
*/
public function process( $data, $jsonld ) {
$is_archive_disabled = Helper::get_settings( 'titles.disable_author_archives' );
$author_id = is_singular() ? $jsonld->post->post_author : get_the_author_meta( 'ID' );
$author_name = get_the_author();
$author_url = get_author_posts_url( $author_id );
$data['ProfilePage'] = [
'@type' => 'Person',
'@id' => ! $is_archive_disabled ? $author_url : $jsonld->parts['url'] . '#author',
'name' => $author_name,
'description' => wp_strip_all_tags( stripslashes( $this->get_description( $author_id ) ), true ),
'url' => $is_archive_disabled ? '' : $author_url,
];
$this->add_image( $data['ProfilePage'], $author_id, $jsonld );
$this->add_same_as( $data['ProfilePage'], $author_id );
$this->add_works_for( $data['ProfilePage'], $data );
if ( is_author() && ! empty( $data['WebPage'] ) ) {
$data['ProfilePage']['mainEntityOfPage'] = [
'@id' => $data['WebPage']['@id'],
];
}
return $data;
}
/**
* Add sameAs property to the Person entity.
Arguments
"Undefined array key "url""
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/modules
/schema
/snippets
/class-author.php
class Author implements Snippet {
/**
* Add Author entity in JSON-LD data.
*
* @link https://schema.org/Person
*
* @param array $data Array of JSON-LD data.
* @param JsonLD $jsonld JsonLD Instance.
*
* @return array
*/
public function process( $data, $jsonld ) {
$is_archive_disabled = Helper::get_settings( 'titles.disable_author_archives' );
$author_id = is_singular() ? $jsonld->post->post_author : get_the_author_meta( 'ID' );
$author_name = get_the_author();
$author_url = get_author_posts_url( $author_id );
$data['ProfilePage'] = [
'@type' => 'Person',
'@id' => ! $is_archive_disabled ? $author_url : $jsonld->parts['url'] . '#author',
'name' => $author_name,
'description' => wp_strip_all_tags( stripslashes( $this->get_description( $author_id ) ), true ),
'url' => $is_archive_disabled ? '' : $author_url,
];
$this->add_image( $data['ProfilePage'], $author_id, $jsonld );
$this->add_same_as( $data['ProfilePage'], $author_id );
$this->add_works_for( $data['ProfilePage'], $data );
if ( is_author() && ! empty( $data['WebPage'] ) ) {
$data['ProfilePage']['mainEntityOfPage'] = [
'@id' => $data['WebPage']['@id'],
];
}
return $data;
}
/**
* Add sameAs property to the Person entity.
Arguments
2
"Undefined array key "url""
"/nas/content/live/drdeschat/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-author.php"
41
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/modules
/schema
/class-jsonld.php
* @return array
*/
public function add_context_data( $data ) {
$is_product_archive = $this->is_product_archive_page();
$can_add_global = $this->can_add_global_entities( $data, $is_product_archive );
$snippets = [
'\\RankMath\\Schema\\Publisher' => ! isset( $data['publisher'] ) && $can_add_global,
'\\RankMath\\Schema\\Website' => $can_add_global,
'\\RankMath\\Schema\\PrimaryImage' => is_singular() && ! post_password_required() && $can_add_global,
'\\RankMath\\Schema\\Breadcrumbs' => $this->can_add_breadcrumb(),
'\\RankMath\\Schema\\Webpage' => $can_add_global,
'\\RankMath\\Schema\\Author' => is_author() || ( is_singular() && $can_add_global ),
'\\RankMath\\Schema\\Products_Page' => $is_product_archive,
'\\RankMath\\Schema\\Singular' => ! post_password_required() && is_singular(),
];
foreach ( $snippets as $class => $can_run ) {
if ( $can_run ) {
$class = new $class();
$data = $class->process( $data, $this );
}
}
return $data;
}
/**
* Function to replace variables used in Schema fields.
*
* @param array $schemas Schema to replace.
* @param object $current_object Current Object.
* @param array $data Array of json-ld data.
*
* @return array
*/
public function replace_variables( $schemas, $current_object = [], $data = [] ) {
$new_schemas = [];
$current_object = empty( $current_object ) ? get_queried_object() : $current_object;
foreach ( $schemas as $key => $schema ) {
if ( 'metadata' === $key ) {
Arguments
array:3 [
"publisher" => array:9 [
"@type" => "Person"
"@id" => "https://www.drdeschat.com/#person"
"name" => "Dr. Mélanie DesChâtelets, ND"
"url" => "https://www.drdeschat.com"
"sameAs" => array:5 [
0 => "https://www.facebook.com/drdeschat"
1 => "https://www.instagram.com/drdeschat"
2 => "https://www.linkedin.com/in/drdeschat/"
3 => "https://cchpbc.alinityapp.com/Client/PublicDirectory/Registrant/16bcc435-3335-f111-9952-000d3ae97b99"
4 => "https://www.bcnd.ca/profile/drdeschatelets/"
]
"email" => "[email protected]"
"address" => array:6 [
"@type" => "PostalAddress"
"streetAddress" => "900-2025 Willingdon Ave"
"addressRegion" => "British Columbia"
"addressCountry" => "CA"
"addressLocality" => "Burnaby"
"postalCode" => "V5C0J3"
]
"telephone" => "604-200-7856"
"image" => array:6 [
"@type" => "ImageObject"
"@id" => "https://www.drdeschat.com/#logo"
"url" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"contentUrl" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"caption" => "Dr. Mélanie DesChâtelets, ND"
"inLanguage" => "en-US"
]
]
"WebSite" => array:7 [
"@type" => "WebSite"
"@id" => "https://www.drdeschat.com/#website"
"url" => "https://www.drdeschat.com"
"name" => "Dr. Mélanie DesChâtelets, ND"
"alternateName" => "DrDesChat"
"publisher" => array:1 [
"@id" => "https://www.drdeschat.com/#person"
]
"inLanguage" => "en-US"
]
"WebPage" => array:6 [
"@type" => "ProfilePage"
"@id" => "https://www.drdeschat.com/author/admin/#webpage"
"url" => "https://www.drdeschat.com/author/admin/"
"name" => "Naturopath in Burnaby and Virtual Care Across BC | Dr. Mélanie DesChâtelets, ND :"
"isPartOf" => array:1 [
"@id" => "https://www.drdeschat.com/#website"
]
"inLanguage" => "en-US"
]
]
JsonLD {}
/nas
/content
/live
/drdeschat
/wp-includes
/class-wp-hook.php
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
Arguments
array:3 [
"publisher" => array:9 [
"@type" => "Person"
"@id" => "https://www.drdeschat.com/#person"
"name" => "Dr. Mélanie DesChâtelets, ND"
"url" => "https://www.drdeschat.com"
"sameAs" => array:5 [
0 => "https://www.facebook.com/drdeschat"
1 => "https://www.instagram.com/drdeschat"
2 => "https://www.linkedin.com/in/drdeschat/"
3 => "https://cchpbc.alinityapp.com/Client/PublicDirectory/Registrant/16bcc435-3335-f111-9952-000d3ae97b99"
4 => "https://www.bcnd.ca/profile/drdeschatelets/"
]
"email" => "[email protected]"
"address" => array:6 [
"@type" => "PostalAddress"
"streetAddress" => "900-2025 Willingdon Ave"
"addressRegion" => "British Columbia"
"addressCountry" => "CA"
"addressLocality" => "Burnaby"
"postalCode" => "V5C0J3"
]
"telephone" => "604-200-7856"
"image" => array:6 [
"@type" => "ImageObject"
"@id" => "https://www.drdeschat.com/#logo"
"url" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"contentUrl" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"caption" => "Dr. Mélanie DesChâtelets, ND"
"inLanguage" => "en-US"
]
]
"WebSite" => array:7 [
"@type" => "WebSite"
"@id" => "https://www.drdeschat.com/#website"
"url" => "https://www.drdeschat.com"
"name" => "Dr. Mélanie DesChâtelets, ND"
"alternateName" => "DrDesChat"
"publisher" => array:1 [
"@id" => "https://www.drdeschat.com/#person"
]
"inLanguage" => "en-US"
]
"WebPage" => array:6 [
"@type" => "ProfilePage"
"@id" => "https://www.drdeschat.com/author/admin/#webpage"
"url" => "https://www.drdeschat.com/author/admin/"
"name" => "Naturopath in Burnaby and Virtual Care Across BC | Dr. Mélanie DesChâtelets, ND :"
"isPartOf" => array:1 [
"@id" => "https://www.drdeschat.com/#website"
]
"inLanguage" => "en-US"
]
]
/nas
/content
/live
/drdeschat
/wp-includes
/plugin.php
// Do 'all' actions first.
if ( isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $args[0];
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
$filtered = $wp_filter[ $hook_name ]->apply_filters( $args[0], $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Checks if any filter has been registered for a hook.
*
* When using the `$callback` argument, this function may return a non-boolean value
* that evaluates to false (e.g. 0), so use the `===` operator for testing the return value.
*
* @since 2.5.0
* @since 6.9.0 Added the `$priority` parameter.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
*
* @param string $hook_name The name of the filter hook.
* @param callable|string|array|false $callback Optional. The callback to check for.
* This function can be called unconditionally to speculatively check
Arguments
array:1 [
"publisher" => array:9 [
"@type" => "Person"
"@id" => "https://www.drdeschat.com/#person"
"name" => "Dr. Mélanie DesChâtelets, ND"
"url" => "https://www.drdeschat.com"
"sameAs" => array:5 [
0 => "https://www.facebook.com/drdeschat"
1 => "https://www.instagram.com/drdeschat"
2 => "https://www.linkedin.com/in/drdeschat/"
3 => "https://cchpbc.alinityapp.com/Client/PublicDirectory/Registrant/16bcc435-3335-f111-9952-000d3ae97b99"
4 => "https://www.bcnd.ca/profile/drdeschatelets/"
]
"email" => "[email protected]"
"address" => array:6 [
"@type" => "PostalAddress"
"streetAddress" => "900-2025 Willingdon Ave"
"addressRegion" => "British Columbia"
"addressCountry" => "CA"
"addressLocality" => "Burnaby"
"postalCode" => "V5C0J3"
]
"telephone" => "604-200-7856"
"image" => array:6 [
"@type" => "ImageObject"
"@id" => "https://www.drdeschat.com/#logo"
"url" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"contentUrl" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"caption" => "Dr. Mélanie DesChâtelets, ND"
"inLanguage" => "en-US"
]
]
]
array:2 [
0 => array:1 [
"publisher" => array:9 [
"@type" => "Person"
"@id" => "https://www.drdeschat.com/#person"
"name" => "Dr. Mélanie DesChâtelets, ND"
"url" => "https://www.drdeschat.com"
"sameAs" => array:5 [
0 => "https://www.facebook.com/drdeschat"
1 => "https://www.instagram.com/drdeschat"
2 => "https://www.linkedin.com/in/drdeschat/"
3 => "https://cchpbc.alinityapp.com/Client/PublicDirectory/Registrant/16bcc435-3335-f111-9952-000d3ae97b99"
4 => "https://www.bcnd.ca/profile/drdeschatelets/"
]
"email" => "[email protected]"
"address" => array:6 [
"@type" => "PostalAddress"
"streetAddress" => "900-2025 Willingdon Ave"
"addressRegion" => "British Columbia"
"addressCountry" => "CA"
"addressLocality" => "Burnaby"
"postalCode" => "V5C0J3"
]
"telephone" => "604-200-7856"
"image" => array:6 [
"@type" => "ImageObject"
"@id" => "https://www.drdeschat.com/#logo"
"url" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"contentUrl" => "https://www.drdeschat.com/wp-content/uploads/2024/04/cropped-DrDesChat_LOGO-1_blue_trans-240x120-1-e1714402695177-150x64.png"
"caption" => "Dr. Mélanie DesChâtelets, ND"
"inLanguage" => "en-US"
]
]
]
1 => JsonLD {}
]
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/traits
/class-hooker.php
$action = 'rank_math/' . $args[0];
unset( $args[0] );
\do_action_ref_array( $action, \array_merge( [], $args ) );
}
/**
* Do filter with league as prefix
*
* @param array ...$args Action args.
*/
protected function do_filter( ...$args ) {
if ( empty( $args[0] ) ) {
return;
}
$action = 'rank_math/' . $args[0];
unset( $args[0] );
return \apply_filters_ref_array( $action, \array_merge( [], $args ) );
}
/**
* Inject config into class
*
* @param array $config Array of configuration.
*/
protected function config( $config = [] ) {
// Bail early if no config.
if ( empty( $config ) ) {
return;
}
foreach ( $config as $key => $value ) {
$this->$key = $value;
}
}
/**
* Remove 'view_query_monitor' capability for current page.
Arguments
"rank_math/json_ld"
array:2 [
0 => []
1 => JsonLD {}
]
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/modules
/schema
/class-jsonld.php
/**
* Output the ld+json tag with the generated schema data.
*/
public function json_ld() {
global $post;
if ( is_singular() ) {
$this->post = $post;
$this->post_id = $post->ID;
$this->get_parts();
}
/**
* Filter to collect data to output in JSON-LD.
*
* @param array $unsigned An array of data to output in JSON-LD.
* @param JsonLD $unsigned JsonLD instance.
*/
$data = array_filter( $this->do_filter( 'json_ld', [], $this ) );
if ( empty( $data ) ) {
return;
}
$data = $this->do_filter( 'schema/validated_data', $this->validate_schema( $data ) );
if ( is_array( $data ) && ! empty( $data ) ) {
$class = defined( 'RANK_MATH_PRO_FILE' ) ? 'schema-pro' : 'schema';
$json = [
'@context' => 'https://schema.org',
'@graph' => array_values( $data ),
];
$options = defined( 'RANKMATH_DEBUG' ) && RANKMATH_DEBUG ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : JSON_UNESCAPED_SLASHES;
echo '<script type="application/ld+json" class="rank-math-' . esc_attr( $class ) . '">' . wp_json_encode( wp_kses_post_deep( $json ), $options ) . '</script>' . "\n";
}
}
/**
* Validate schema data. Removes invalid and empty values from the schema data.
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/nas
/content
/live
/drdeschat
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/plugin.php
// Do 'all' actions first.
if ( isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
$wp_filter[ $hook_name ]->do_action( $args );
array_pop( $wp_current_filter );
}
/**
* Checks if any action has been registered for a hook.
*
* When using the `$callback` argument, this function may return a non-boolean value
* that evaluates to false (e.g. 0), so use the `===` operator for testing the return value.
*
* @since 2.5.0
* @since 6.9.0 Added the `$priority` parameter.
*
* @see has_filter() This function is an alias of has_filter().
*
* @param string $hook_name The name of the action hook.
* @param callable|string|array|false $callback Optional. The callback to check for.
* This function can be called unconditionally to speculatively check
* a callback that may or may not exist. Default false.
* @param int|false $priority Optional. The specific priority at which to check for the callback.
Arguments
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/traits
/class-hooker.php
* @return bool Whether the function existed before it was removed.
*/
protected function remove_filter( $tag, $function_to_remove, $priority = 10 ) {
return \remove_filter( $tag, [ $this, $function_to_remove ], $priority );
}
/**
* Do action with league as prefix
*
* @param array ...$args Action args.
*/
protected function do_action( ...$args ) {
if ( empty( $args[0] ) ) {
return;
}
$action = 'rank_math/' . $args[0];
unset( $args[0] );
\do_action_ref_array( $action, \array_merge( [], $args ) );
}
/**
* Do filter with league as prefix
*
* @param array ...$args Action args.
*/
protected function do_filter( ...$args ) {
if ( empty( $args[0] ) ) {
return;
}
$action = 'rank_math/' . $args[0];
unset( $args[0] );
return \apply_filters_ref_array( $action, \array_merge( [], $args ) );
}
/**
* Inject config into class
Arguments
/nas
/content
/live
/drdeschat
/wp-content
/plugins
/seo-by-rank-math
/includes
/frontend
/class-head.php
$this->credits();
// Remove core actions, now handled by Rank Math.
remove_action( 'wp_head', 'rel_canonical' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'start_post_rel_link' );
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
remove_action( 'wp_head', 'noindex', 1 );
if ( Helper::is_amp_active() ) {
remove_action( 'amp_post_template_head', 'amp_post_template_add_title' );
remove_action( 'amp_post_template_head', 'amp_post_template_add_canonical' );
remove_action( 'amp_post_template_head', 'amp_print_schemaorg_metadata' );
}
/**
* Add extra output in the head tag.
*/
$this->do_action( 'head' );
$this->credits( true );
if ( ! empty( $old_wp_query ) ) {
$GLOBALS['wp_query'] = $old_wp_query;
unset( $old_wp_query );
}
}
/**
* Main title function.
*
* @param string $title Already set title or empty string.
* @return string
*/
public function title( $title ) {
if ( is_feed() ) {
return $title;
}
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
/nas
/content
/live
/drdeschat
/wp-includes
/general-template.php
* @param string $before The HTML to output before the date.
* @param string $after The HTML to output after the date.
*/
echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
/**
* Fires the wp_head action.
*
* See {@see 'wp_head'}.
*
* @since 1.2.0
*/
function wp_head() {
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
/**
* Fires the wp_footer action.
*
* See {@see 'wp_footer'}.
*
* @since 1.5.1
*/
function wp_footer() {
/**
* Prints scripts or data before the closing body tag on the front end.
*
* @since 1.5.1
*/
do_action( 'wp_footer' );
}
/**
* Fires the wp_body_open action.
Arguments
/nas
/content
/live
/drdeschat
/wp-content
/themes
/genesis
/header.php
*
* @since 1.3.0
*/
do_action( 'genesis_doctype' );
/**
* Fires immediately after `genesis_doctype` action hook, in header.php to render the document title.
*
* @since 1.0.0
*/
do_action( 'genesis_title' );
/**
* Fires immediately after `genesis_title` action hook, in header.php to render the meta elements.
*
* @since 1.0.0
*/
do_action( 'genesis_meta' );
wp_head(); // We need this for plugins.
?>
</head>
<?php
genesis_markup(
[
'open' => '<body %s>',
'context' => 'body',
]
);
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
/**
* Fires immediately after the `wp_body_open` action hook.
*
* @since 1.0.0
*/
do_action( 'genesis_before' );
/nas
/content
/live
/drdeschat
/wp-includes
/template.php
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s ); // @phpstan-ignore variable.undefined (It's extracted from query vars.)
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
if ( $load_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
/**
* Checks whether the template should be output buffered for enhancement.
*
* By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
Arguments
"/nas/content/live/drdeschat/wp-content/themes/genesis/header.php"
/nas
/content
/live
/drdeschat
/wp-includes
/template.php
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
$located = $wp_stylesheet_path . '/' . $template_name;
break;
} elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
$located = $wp_template_path . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' !== $located ) {
load_template( $located, $load_once, $args );
}
return $located;
}
/**
* Requires the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
* @since 5.5.0 The `$args` parameter was added.
*
* @global array $posts
* @global WP_Post $post Global post object.
* @global bool $wp_did_header
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
Arguments
"/nas/content/live/drdeschat/wp-content/themes/genesis/header.php"
true
[]
/nas
/content
/live
/drdeschat
/wp-includes
/general-template.php
* Fires before the header template file is loaded.
*
* @since 2.1.0
* @since 2.8.0 The `$name` parameter was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name Name of the specific header file to use. Null for the default header.
* @param array $args Additional arguments passed to the header template.
*/
do_action( 'get_header', $name, $args );
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "header-{$name}.php";
}
$templates[] = 'header.php';
if ( ! locate_template( $templates, true, true, $args ) ) {
return false;
}
}
/**
* Loads footer template.
*
* Includes the footer template for a theme or if a name is specified then a
* specialized footer will be included.
*
* For the parameter, if the file is called "footer-special.php" then specify
* "special".
*
* @since 1.5.0
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name The name of the specialized footer. Default null.
* @param array $args Optional. Additional arguments passed to the footer template.
* Default empty array.
Arguments
array:1 [
0 => "header.php"
]
true
true
[]
/nas
/content
/live
/drdeschat
/wp-content
/themes
/genesis
/lib
/framework.php
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Framework
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*/
/**
* Used to initialize the framework in the various template files.
*
* It pulls in all the necessary components like header and footer, the basic
* markup structure, and hooks.
*
* @since 1.3.0
*/
function genesis() {
get_header();
/**
* Fires after the header, before the content sidebar wrap.
*
* @since 1.0.0
*/
do_action( 'genesis_before_content_sidebar_wrap' );
genesis_markup(
[
'open' => '<div %s>',
'context' => 'content-sidebar-wrap',
]
);
/**
* Fires before the content, after the content sidebar wrap opening markup.
*
* @since 1.0.0
*/
/nas
/content
/live
/drdeschat
/wp-content
/themes
/genesis
/index.php
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*/
// Initialize Genesis.
genesis();
/nas
/content
/live
/drdeschat
/wp-includes
/template-loader.php
*/
$template = apply_filters( 'template_include', $template );
$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
$template = $is_stringy ? realpath( (string) $template ) : null;
if (
is_string( $template ) &&
( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
is_file( $template ) &&
is_readable( $template )
) {
/**
* Fires immediately before including the template.
*
* @since 6.9.0
*
* @param string $template The path of the template about to be included.
*/
do_action( 'wp_before_include_template', $template );
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/nas/content/live/drdeschat/wp-content/themes/genesis/index.php"
/nas
/content
/live
/drdeschat
/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/nas/content/live/drdeschat/wp-includes/template-loader.php"
/nas
/content
/live
/drdeschat
/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/nas/content/live/drdeschat/wp-blog-header.php"