/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
$cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
? self::$globals_cache[ $new_locale ]['l10n']
: [];
/**
* The JustInTimeMO objects will replaced themselves on the fly
* by the legacy default MO object if a string is translated.
* This is because the function "_load_textdomain_just_in_time"
* does not support the default domain and MO files outside the
* "wp-content/languages" folder.
*/
$GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
}
private function resetTranslationAvailabilityInformation() {
global $wp_textdomain_registry;
if ( $wp_textdomain_registry ) {
$wp_textdomain_registry->reset();
} elseif ( function_exists( '_get_path_to_translation' ) ) {
_get_path_to_translation( null, true );
}
}
/**
* @param string $locale
*
* @return string
*/
public function filterLocale( $locale ) {
$currentLocale = $this->getCurrentLocale();
if ( $currentLocale ) {
return $currentLocale;
}
return $locale;
}
Arguments
"Call to undefined method WP_Textdomain_Registry::reset()"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
* @param string $new_locale
*/
private function changeWpLocale( $new_locale ) {
if ( isset( self::$globals_cache[ $new_locale ]['wp_locale'] ) ) {
$GLOBALS['wp_locale'] = self::$globals_cache[ $new_locale ]['wp_locale'];
} else {
/**
* WPLocaleProxy is a wrapper of \WP_Locale with a kind of lazy initialization
* to avoid loading the default domain for strings that
* we don't use in this transitory language.
*/
$GLOBALS['wp_locale'] = new WPLocaleProxy();
}
}
/**
* @param string $new_locale
*/
private function changeMoObjects( $new_locale ) {
$this->resetTranslationAvailabilityInformation();
$cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
? self::$globals_cache[ $new_locale ]['l10n']
: [];
/**
* The JustInTimeMO objects will replaced themselves on the fly
* by the legacy default MO object if a string is translated.
* This is because the function "_load_textdomain_just_in_time"
* does not support the default domain and MO files outside the
* "wp-content/languages" folder.
*/
$GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
}
private function resetTranslationAvailabilityInformation() {
global $wp_textdomain_registry;
if ( $wp_textdomain_registry ) {
$wp_textdomain_registry->reset();
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
$this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
}
}
/**
* This method will act as the WP Core function `switch_to_locale`,
* but in a more efficient way. It will avoid to instantly load
* the domains loaded in the previous locale. Instead, it will let
* the domains be loaded via the "just in time" function.
*
* @param string $new_locale
*/
public function switchToLocale( $new_locale ) {
if ( $new_locale === $this->getCurrentLocale() ) {
return;
}
$this->updateCurrentGlobalsCache();
$this->changeWpLocale( $new_locale );
$this->changeMoObjects( $new_locale );
$this->setCurrentLocale( $new_locale );
}
/**
* @param string|null $locale
*/
public static function resetCache( $locale = null ) {
self::$current_locale = $locale;
self::$globals_cache = [];
}
/**
* We need to take a new copy of the current locale globals
* because some domains could have been added with the "just in time"
* mechanism.
*/
private function updateCurrentGlobalsCache() {
$cache = [
'wp_locale' => isset( $GLOBALS['wp_locale'] ) ? $GLOBALS['wp_locale'] : null,
'l10n' => isset( $GLOBALS['l10n'] ) ? (array) $GLOBALS['l10n'] : [],
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
}
public function add_hooks() {
add_action( 'wpml_language_has_switched', [ $this, 'languageHasSwitched' ] );
}
/** @param string $locale */
private function setCurrentLocale( $locale ) {
self::$current_locale = $locale;
}
/** @return string */
public function getCurrentLocale() {
return self::$current_locale;
}
public function languageHasSwitched() {
$this->initCurrentLocale();
$new_locale = $this->language_resolution->getCurrentLocale();
$this->switchToLocale( $new_locale );
}
public function initCurrentLocale() {
if ( ! $this->getCurrentLocale() ) {
add_filter( 'locale', [ $this, 'filterLocale' ], PHP_INT_MAX );
$this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
}
}
/**
* This method will act as the WP Core function `switch_to_locale`,
* but in a more efficient way. It will avoid to instantly load
* the domains loaded in the previous locale. Instead, it will let
* the domains be loaded via the "just in time" function.
*
* @param string $new_locale
*/
public function switchToLocale( $new_locale ) {
if ( $new_locale === $this->getCurrentLocale() ) {
return;
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
null
array:3 [
0 => "en"
1 => false
2 => "en-ca"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
array:3 [
0 => "en"
1 => false
2 => "en-ca"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/sitepress.class.php
$this->set_this_lang( $this->original_language );
if ( ! empty( $this->original_language_cookie ) ) {
$wpml_request_handler->set_language_cookie( $this->original_language_cookie );
$this->original_language_cookie = false;
}
} else {
if ( $code === 'all' || in_array( $code, $wpml_language_resolution->get_active_language_codes(), true ) ) {
$this->set_this_lang( $code );
}
if ( $cookie_lang ) {
$this->original_language_cookie = $wpml_request_handler->get_cookie_lang();
$wpml_request_handler->set_language_cookie( $code );
}
}
if ( $code ) {
$GLOBALS['icl_language_switched'] = true;
} else {
unset( $GLOBALS['icl_language_switched'] );
}
do_action( 'wpml_language_has_switched', $code, $cookie_lang, $this->original_language );
}
function set_default_language( $code ) {
$previous_default = $this->get_setting( 'default_language' );
$this->set_setting( 'default_language', $code );
$this->set_setting( 'admin_default_language', $code );
$this->save_settings();
do_action( 'icl_after_set_default_language', $code, $previous_default );
// change WP locale
$locale = $this->get_locale( $code );
if ( $locale ) {
update_option( 'WPLANG', $locale );
}
$user_language = new WPML_User_Language( $this );
$user_language->sync_default_admin_user_languages();
return $code !== 'en' && ! file_exists( WP_LANG_DIR . '/' . $locale . '.mo' ) ? 1 : true;
Arguments
"wpml_language_has_switched"
"en"
false
"en-ca"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/sitepress.class.php
$_wp_query_back,
$this->wp_query
);
$display_as_translated_ls_link = new WPML_LS_Display_As_Translated_Link(
$this,
$wpml_url_converter->get_strategy(),
$this->wp_query,
new WPML_Translation_Element_Factory( $this )
);
// 2. determine url
foreach ( $w_active_languages as $k => $lang ) {
$skip_lang = false;
if ( is_singular()
|| ( isset( $_wp_query_back->query['name'] ) && isset( $_wp_query_back->query['post_type'] ) )
|| $this->is_page_query()
) {
$this_lang_tmp = $this->this_lang;
$this->switch_lang( $lang['code'] );
$lang_page_on_front = get_option( 'page_on_front' );
$lang_page_for_posts = get_option( 'page_for_posts' );
if ( $lang_page_on_front ) {
$lang_page_on_front = icl_object_id( $lang_page_on_front, 'page', false, $lang['code'] );
}
if ( $lang_page_for_posts ) {
$lang_page_for_posts = icl_object_id( $lang_page_for_posts, 'page', false, $lang['code'] );
}
if ( 'page' === get_option( 'show_on_front' ) && ! empty( $translations[ $lang['code'] ] ) && $translations[ $lang['code'] ]->element_id == $lang_page_on_front ) {
$lang['translated_url'] = $this->language_url( $lang['code'], true );
} elseif ( 'page' == get_option( 'show_on_front' ) && ! empty( $translations[ $lang['code'] ] ) && $translations[ $lang['code'] ]->element_id && $translations[ $lang['code'] ]->element_id == $lang_page_for_posts ) {
if ( $lang_page_for_posts ) {
$lang['translated_url'] = get_permalink( $lang_page_for_posts );
} else {
$lang['translated_url'] = $this->language_url( $lang['code'], true );
}
} else {
if ( ! empty( $translations[ $lang['code'] ] ) && isset( $translations[ $lang['code'] ]->post_title ) ) {
$this->switch_lang( $lang['code'] );
$lang['translated_url'] = get_permalink( $translations[ $lang['code'] ]->element_id );
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/classes
/language-switcher
/class-wpml-ls-model-build.php
* @return array
*/
private function get_language_items( $slot, $template_data ) {
$ret = [];
$get_ls_args = [
'skip_missing' => ! $this->settings->get_setting( 'link_empty' ),
];
if ( $slot->is_post_translations() ) {
$get_ls_args['skip_missing'] = true;
} elseif ( ( WPML_Root_Page::uses_html_root() || WPML_Root_Page::get_root_id() ) && WPML_Root_Page::is_current_request_root() ) {
$get_ls_args['skip_missing'] = false;
}
$flag_width = $slot->get( 'include_flag_width' );
$flag_height = $slot->get( 'include_flag_height' );
$languages = $this->sitepress->get_ls_languages( $get_ls_args );
$languages = is_array( $languages ) ? $languages : [];
if ( $languages ) {
foreach ( $languages as $code => $data ) {
$is_current_language = $code === $this->sitepress->get_current_language();
if ( ! $slot->get( 'display_link_for_current_lang' ) && $is_current_language ) {
continue;
}
$ret[ $code ] = [
'code' => $code,
'url' => $data['url'],
];
if ( $flag_width ) {
$ret[ $code ]['flag_width'] = $flag_width;
}
Arguments
array:1 [
"skip_missing" => true
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/classes
/language-switcher
/class-wpml-ls-model-build.php
* @param SitePress $sitepress
* @param string $css_prefix
*/
public function __construct( $settings, $sitepress, $css_prefix ) {
$this->settings = $settings;
$this->css_prefix = $css_prefix;
parent::__construct( $sitepress );
}
/**
* @param WPML_LS_Slot $slot
* @param array $template_data
*
* @return array
*/
public function get( $slot, $template_data = [] ) {
$vars = [];
$vars['current_language_code'] = $this->sitepress->get_current_language();
$vars['languages'] = $this->get_language_items( $slot, $template_data );
$vars['css_classes'] = $this->get_slot_css_classes( $slot );
$vars['css_classes_link'] = self::LINK_CSS_CLASS;
$vars = $this->add_backward_compatibility_to_wrapper( $vars, $slot );
return $this->sanitize_vars( $vars, $this->allowed_vars );
}
/**
* @param WPML_LS_Slot $slot
*
* @return string
*/
public function get_slot_css_classes( $slot ) {
$classes = [ $this->get_slot_css_main_class( $slot->group(), $slot->slug() ) ];
$classes[] = trim( $this->css_prefix, '-' );
if ( $this->sitepress->is_rtl( $this->sitepress->get_current_language() ) ) {
$classes[] = $this->css_prefix . 'rtl';
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/classes
/language-switcher
/class-wpml-ls-render.php
}
$menu_orders = wp_list_pluck( $items_to_prepend, 'menu_order' );
$offset = max( $menu_orders );
foreach ( $items_to_append as $item ) {
$item->menu_order = $item->menu_order + $offset;
}
return array_merge( $items_to_prepend, $items_to_append );
}
/**
* @param WPML_LS_Slot $slot
*
* @return array
*/
private function get_menu_items( $slot ) {
$lang_items = array();
$model = $this->model_build->get( $slot );
if ( isset( $model['languages'] ) ) {
$this->current_template = $this->templates->get_template( $slot->template() );
$menu_order = 1;
foreach ( $model['languages'] as $language_model ) {
$this->current_template->set_model( $language_model );
$item_content = $this->filter_html( $this->current_template->get_html(), $language_model, $slot );
$ls_menu_item = new WPML_LS_Menu_Item( $language_model, $item_content );
$ls_menu_item->menu_order = $menu_order;
$menu_order++;
$lang_items[] = $ls_menu_item;
}
}
return $lang_items;
}
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/classes
/language-switcher
/class-wpml-ls-render.php
/**
* @param array $items
* @param WP_Term $menu
*
* @return array
*/
public function wp_get_nav_menu_items_filter( $items, $menu ) {
if ( $this->should_not_alter_menu() ) {
return $items;
}
if ( $this->is_for_menu_panel_in_customizer() ) {
return $items;
}
$slot = $this->settings->get_menu_settings_from_id( $menu->term_id );
if ( $slot->is_enabled() && ! $this->is_hidden( $slot ) ) {
$is_before = 'before' === $slot->get( 'position_in_menu' );
$lang_items = $this->get_menu_items( $slot );
if ( $items && $lang_items ) {
$items = $this->merge_menu_items( $items, $lang_items, $is_before );
} elseif ( ! $items && $lang_items ) {
$items = $lang_items;
}
}
return $items;
}
private function is_for_menu_panel_in_customizer() {
return is_customize_preview() && ! did_action( 'template_redirect' );
}
private function should_not_alter_menu() {
if ( null === $this->wpml_ls_exclude_in_menu ) {
$this->wpml_ls_exclude_in_menu = apply_filters( 'wpml_ls_exclude_in_menu', true );
}
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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:28 [
0 => WP_Post {}
1 => WP_Post {}
2 => WP_Post {}
3 => WP_Post {}
4 => WP_Post {}
5 => WP_Post {}
6 => WP_Post {}
7 => WP_Post {}
8 => WP_Post {}
9 => WP_Post {}
10 => WP_Post {}
11 => WP_Post {}
12 => WP_Post {}
13 => WP_Post {}
14 => WP_Post {}
15 => WP_Post {}
16 => WP_Post {}
17 => WP_Post {}
18 => WP_Post {}
19 => WP_Post {}
20 => WP_Post {}
21 => WP_Post {}
22 => WP_Post {}
23 => WP_Post {}
24 => WP_Post {}
25 => WP_Post {}
26 => WP_Post {}
27 => WP_Post {}
]
WP_Term {}
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/plugin.php
$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 $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() 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_filters Stores the number of times each filter 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 filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
Arguments
array:28 [
0 => WP_Post {}
1 => WP_Post {}
2 => WP_Post {}
3 => WP_Post {}
4 => WP_Post {}
5 => WP_Post {}
6 => WP_Post {}
7 => WP_Post {}
8 => WP_Post {}
9 => WP_Post {}
10 => WP_Post {}
11 => WP_Post {}
12 => WP_Post {}
13 => WP_Post {}
14 => WP_Post {}
15 => WP_Post {}
16 => WP_Post {}
17 => WP_Post {}
18 => WP_Post {}
19 => WP_Post {}
20 => WP_Post {}
21 => WP_Post {}
22 => WP_Post {}
23 => WP_Post {}
24 => WP_Post {}
25 => WP_Post {}
26 => WP_Post {}
27 => WP_Post {}
]
array:3 [
0 => array:28 [
0 => WP_Post {}
1 => WP_Post {}
2 => WP_Post {}
3 => WP_Post {}
4 => WP_Post {}
5 => WP_Post {}
6 => WP_Post {}
7 => WP_Post {}
8 => WP_Post {}
9 => WP_Post {}
10 => WP_Post {}
11 => WP_Post {}
12 => WP_Post {}
13 => WP_Post {}
14 => WP_Post {}
15 => WP_Post {}
16 => WP_Post {}
17 => WP_Post {}
18 => WP_Post {}
19 => WP_Post {}
20 => WP_Post {}
21 => WP_Post {}
22 => WP_Post {}
23 => WP_Post {}
24 => WP_Post {}
25 => WP_Post {}
26 => WP_Post {}
27 => WP_Post {}
]
1 => WP_Term {}
2 => array:10 [
"order" => "ASC"
"orderby" => "menu_order"
"post_type" => "nav_menu_item"
"post_status" => "publish"
"output" => "ARRAY_A"
"output_key" => "menu_order"
"nopaging" => true
"update_menu_item_cache" => true
"tax_query" => array:1 [
0 => array:3 [
"taxonomy" => "nav_menu"
"field" => "term_taxonomy_id"
"terms" => 27
]
]
"update_post_term_cache" => false
]
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/nav-menu.php
)
);
$i = 1;
foreach ( $items as $k => $item ) {
$items[ $k ]->{$args['output_key']} = $i++;
}
}
/**
* Filters the navigation menu items being returned.
*
* @since 3.0.0
*
* @param array $items An array of menu item post objects.
* @param object $menu The menu object.
* @param array $args An array of arguments used to retrieve menu item objects.
*/
return apply_filters( 'wp_get_nav_menu_items', $items, $menu, $args );
}
/**
* Updates post and term caches for all linked objects for a list of menu items.
*
* @since 6.1.0
*
* @param WP_Post[] $menu_items Array of menu item post objects.
*/
function update_menu_item_cache( $menu_items ) {
$post_ids = array();
$term_ids = array();
foreach ( $menu_items as $menu_item ) {
if ( 'nav_menu_item' !== $menu_item->post_type ) {
continue;
}
$object_id = get_post_meta( $menu_item->ID, '_menu_item_object_id', true );
$type = get_post_meta( $menu_item->ID, '_menu_item_type', true );
Arguments
"wp_get_nav_menu_items"
array:28 [
0 => WP_Post {}
1 => WP_Post {}
2 => WP_Post {}
3 => WP_Post {}
4 => WP_Post {}
5 => WP_Post {}
6 => WP_Post {}
7 => WP_Post {}
8 => WP_Post {}
9 => WP_Post {}
10 => WP_Post {}
11 => WP_Post {}
12 => WP_Post {}
13 => WP_Post {}
14 => WP_Post {}
15 => WP_Post {}
16 => WP_Post {}
17 => WP_Post {}
18 => WP_Post {}
19 => WP_Post {}
20 => WP_Post {}
21 => WP_Post {}
22 => WP_Post {}
23 => WP_Post {}
24 => WP_Post {}
25 => WP_Post {}
26 => WP_Post {}
27 => WP_Post {}
]
WP_Term {}
array:10 [
"order" => "ASC"
"orderby" => "menu_order"
"post_type" => "nav_menu_item"
"post_status" => "publish"
"output" => "ARRAY_A"
"output_key" => "menu_order"
"nopaging" => true
"update_menu_item_cache" => true
"tax_query" => array:1 [
0 => array:3 [
"taxonomy" => "nav_menu"
"field" => "term_taxonomy_id"
"terms" => 27
]
]
"update_post_term_cache" => false
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/nav-menu-template.php
// Get the first menu that has items if we still can't find a menu.
if ( ! $menu && ! $args->theme_location ) {
$menus = wp_get_nav_menus();
foreach ( $menus as $menu_maybe ) {
$menu_items = wp_get_nav_menu_items( $menu_maybe->term_id, array( 'update_post_term_cache' => false ) );
if ( $menu_items ) {
$menu = $menu_maybe;
break;
}
}
}
if ( empty( $args->menu ) ) {
$args->menu = $menu;
}
// If the menu exists, get its items.
if ( $menu && ! is_wp_error( $menu ) && ! isset( $menu_items ) ) {
$menu_items = wp_get_nav_menu_items( $menu->term_id, array( 'update_post_term_cache' => false ) );
}
/*
* If no menu was found:
* - Fall back (if one was specified), or bail.
*
* If no menu items were found:
* - Fall back, but only if no theme location was specified.
* - Otherwise, bail.
*/
if ( ( ! $menu || is_wp_error( $menu ) || ( isset( $menu_items ) && empty( $menu_items ) && ! $args->theme_location ) )
&& isset( $args->fallback_cb ) && $args->fallback_cb && is_callable( $args->fallback_cb ) ) {
return call_user_func( $args->fallback_cb, (array) $args );
}
if ( ! $menu || is_wp_error( $menu ) ) {
return false;
}
$nav_menu = '';
Arguments
WP_Term {}
array:10 [
"order" => "ASC"
"orderby" => "menu_order"
"post_type" => "nav_menu_item"
"post_status" => "publish"
"output" => "ARRAY_A"
"output_key" => "menu_order"
"nopaging" => true
"update_menu_item_cache" => true
"tax_query" => array:1 [
0 => array:3 [
"taxonomy" => "nav_menu"
"field" => "term_taxonomy_id"
"terms" => 27
]
]
"update_post_term_cache" => false
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/components
/menu
/menu.php
function amp_menu_html($echo, $menu_args, $type){
$theme_location = 'amp-menu';
if ( 'amp-alternative-menu' == $type ) {
$theme_location = 'amp-alternative-menu';
}
if( has_nav_menu( 'amp-menu' ) || has_nav_menu( 'amp-footer-menu' ) || has_nav_menu( 'amp-alternative-menu' ) ) {
if ( !empty($menu_args) && isset($menu_args['walker']) ) {
$menu_args['walker'] = new Ampforwp_Walker_Nav_Menu();
}
if (empty($menu_args)){
$menu_args = array(
'theme_location' => $theme_location,
'container'=>'aside',
'menu'=>'ul',
'menu_class'=>'amp-menu',
'echo' => false,
'walker' => new Ampforwp_Walker_Nav_Menu()
);
}
$menu_html_content = wp_nav_menu( $menu_args );
$menu_html_content = apply_filters('ampforwp_menu_content', $menu_html_content);
$sanitizer_obj = new AMPFORWP_Content( $menu_html_content, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array(), 'AMP_Style_Sanitizer' => array(), ) ) );
$sanitized_menu = $sanitizer_obj->get_amp_content();
$menu_cache = true;
if ( class_exists('Sitepress') ) {
$menu_cache = false;
}
if(defined('QTX_VERSION')){ // FOR qTranslate-X
$menu_cache = false;
}
$menu_cache = apply_filters('ampforwp_menu_cache',$menu_cache);
if ($menu_cache) {
if ( 'header' == $type ) {
set_transient('ampforwp_header_menu', $sanitized_menu, 14*DAY_IN_SECONDS );
}
elseif ('footer' == $type) {
set_transient('ampforwp_footer_menu', $sanitized_menu, 15*DAY_IN_SECONDS );
}
}
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/components
/components-core.php
//Menus
function amp_menu($echo=true, $menu_args=array(), $type='header'){
if ( ($type == 'header' && ! has_nav_menu( 'amp-menu' )) || ( 'footer' == $type && ! has_nav_menu( 'amp-footer-menu' ) ) ) {
return false;
}
global $loadComponent;
if(isset($loadComponent['AMP-menu']) && $loadComponent['AMP-menu']==true){
$amp_menu = "";
$header_menu = get_transient('ampforwp_header_menu');
$footer_menu = get_transient('ampforwp_footer_menu');
if ( 'header' == $type && false != $header_menu ){
$amp_menu = $header_menu;
}
elseif ('footer' == $type && false != $footer_menu) {
$amp_menu = $footer_menu;
}
else{
$amp_menu = amp_menu_html($echo, $menu_args, $type);
}
if ( false == $echo ) {
return $amp_menu;
}
else
echo $amp_menu; // escaped above
}
}
// Alternative Menus
function amp_alter_menu($echo=true){
global $loadComponent;
if ( ! has_nav_menu('amp-alternative-menu') ) {
return false;
}
if(isset($loadComponent['AMP-alter-menu']) && $loadComponent['AMP-alter-menu']==true){
if ( false == $echo ) {
return amp_menu_html($echo, array(),'amp-alternative-menu');
}
else
echo amp_menu_html($echo, array(), 'amp-alternative-menu');
Arguments
false
array:6 [
"theme_location" => "amp-menu"
"container" => "aside"
"menu" => "ul"
"menu_class" => "amp-menu"
"echo" => false
"walker" => Ampforwp_Walker_Nav_Menu {}
]
"header"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/amp-theme-TFL
/header.php
if ( ! defined('AMPFORWP_LAYOUTS_FILE'))
{
if ( ! in_array($header_type, array(1, 2, 3, 10)))
{
$header_type = 1;
}
}
?>
<?php
do_action('ampforwp_reading_progress_bar'); ?>
<header class="header-3 h_m h_m_1">
<?php do_action('ampforwp_header_top_design4'); ?>
<input type="checkbox" id="offcanvas-menu" class="tg"/>
<div class="hamb-mnu">
<aside class="m-ctr">
<div class="m-scrl">
<div class="menu-heading clearfix">
<label for="offcanvas-menu" class="c-btn"></label>
</div><!--end menu-heading-->
<?php if (amp_menu(false)) : ?>
<nav class="m-menu">
<?php amp_menu(); ?>
</nav><!--end slide-menu -->
<?php endif; ?>
<?php do_action('ampforwp_after_amp_menu'); ?>
<?php if ($redux_builder_amp['menu-search']) { ?>
<div class="m-srch">
<?php amp_search(); ?>
</div>
<?php } ?>
<?php if (true == $redux_builder_amp['menu-social']) { ?>
<div class="m-s-i">
<ul>
<?php if ($redux_builder_amp['enbl-fb']) { ?>
<li>
<a title="facebook" class="s_fb" target="_blank" href="<?php echo esc_url($redux_builder_amp['enbl-fb-prfl-url']); ?>"></a>
</li>
<?php } ?>
<?php if ($redux_builder_amp['enbl-tw']) { ?>
<li>
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/includes
/class-amp-post-template.php
$attributes['lang'] = $lang;
}
$attributes = apply_filters('ampforwp_modify_html_attributes', $attributes);
$this->add_data_by_key( 'html_tag_attributes', $attributes );
}
private function verify_and_include( $file, $template_type ) {
$located_file = $this->locate_template( $file );
if ( $located_file ) {
$file = $located_file;
}
$file = apply_filters( 'amp_post_template_file', $file, $template_type, $this->post );
if ( ! $this->is_valid_template( $file ) ) {
_doing_it_wrong( __METHOD__, sprintf( esc_html__( 'Path validation for template (%s) failed. Path cannot traverse and must be located in `%s`.', 'accelerated-mobile-pages' ), esc_html( $file ), 'WP_CONTENT_DIR' ), '0.1' );
return;
}
do_action( 'amp_post_template_include_' . $template_type, $this );
include( $file );
}
private function locate_template( $file ) {
$location = 'ampforwp';
$location = apply_filters("ampforwp_template_locate",$location);
$search_file = sprintf( $location.'/%s', basename( $file ) );
return locate_template( array( $search_file ), false );
}
private function is_valid_template( $template ) {
if ( false !== strpos( $template, '..' ) ) {
return false;
}
if ( false !== strpos( $template, './' ) ) {
return false;
}
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/plugins/amp-theme-TFL/header.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/includes
/class-amp-post-template.php
return $value;
}
public function get_customizer_setting( $name, $default = null ) {
$settings = $this->get( 'customizer_settings' );
if ( ! empty( $settings[ $name ] ) ) {
return $settings[ $name ];
}
return $default;
}
public function load() {
$this->load_parts( array( 'single' ) );
}
public function load_parts( $templates ) {
foreach ( $templates as $template ) {
$file = $this->get_template_path( $template );
$this->verify_and_include( $file, $template );
}
}
private function get_template_path( $template ) {
return sprintf( '%s/%s.php', $this->template_dir, $template );
}
private function add_data( $data ) {
$this->data = array_merge( $this->data, $data );
}
private function add_data_by_key( $key, $value ) {
$this->data[ $key ] = $value;
}
private function merge_data_for_key( $key, $value ) {
if ( is_array( $this->data[ $key ] ) ) {
$this->data[ $key ] = array_merge( $this->data[ $key ], $value );
} else {
$this->add_data_by_key( $key, $value );
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/plugins/amp-theme-TFL/header.php"
"header"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/components
/components-core.php
$custom_css = str_replace(array('.accordion-mod'), array('.apac'), $custom_css);
$sanitized_css = ampforwp_sanitize_i_amphtml($custom_css);
echo $sanitized_css; // sanitized above ?>
</style>
<?php do_action('ampforwp_before_head', $thisTemplate); ?>
</head>
<body <?php echo esc_attr($lightbox); ?> <?php ampforwp_body_class($bodyClass); ?>>
<?php do_action('amp_start', $thisTemplate); ?>
<?php do_action('ampforwp_admin_menu_bar_front'); ?>
<?php do_action('ampforwp_body_beginning', $thisTemplate);
}
function amp_header(){
global $ampforwpTemplate;
$post_id = ampforwp_get_the_ID();
if ( ampforwp_polylang_front_page() ) {
$post_id = pll_get_post(get_option('page_on_front'));
}
$thisTemplate = $ampforwpTemplate;
$thisTemplate->load_parts( array( 'header' ) );
do_action( 'amp_after_header', $thisTemplate );
do_action( 'ampforwp_after_header', $thisTemplate );
do_action('ampforwp_post_before_design_elements') ?>
<?php }
function amp_footer(){
global $ampforwpTemplate;
$post_id = ampforwp_get_the_ID();
if ( ampforwp_polylang_front_page() ) {
$post_id = pll_get_post(get_option('page_on_front'));
}
$thisTemplate = $ampforwpTemplate;
do_action( 'amp_before_footer', $thisTemplate );
do_action( 'amp_post_template_above_footer', $thisTemplate );
$thisTemplate->load_parts( array( 'footer' ) );
}
function amp_footer_core(){
Arguments
array:1 [
0 => "header"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/amp-theme-TFL
/single.php
<?php
if ( ! defined('ABSPATH'))
{
exit;
}
global $redux_builder_amp; ?>
<?php amp_header(); ?>
<?php if (ampforwp_get_setting('single-design-type') == '1') { ?>
<div class="sp sgl">
<?php if ( ! checkAMPforPageBuilderStatus(get_the_ID())) { ?>
<div class="cntr">
<?php if (true == $redux_builder_amp['ampforwp-bread-crumb'])
{
amp_breadcrumb();
} ?>
<?php amp_categories_list(); ?>
<?php if (true == $redux_builder_amp['enable-excerpt-single']) { ?>
<div class="tl-exc">
<?php amp_excerpt(25); ?>
</div>
<?php } ?>
</div>
<?php if (ampforwp_get_setting('swift-featued-image') && ampforwp_has_post_thumbnail()) { ?>
<?php if (ampforwp_get_setting('swift-featued-image-type') == 1) { ?>
<div class="sf-img">
<?php amp_featured_image(); ?>
</div>
<?php } // Swift Featured Image Type 1
}
} ?>
<div class="sp-cnt">
<div class="cntr">
<div class="sp-rl">
<div class="sp-rt">
<?php amp_title(); ?>
<?php if (isset($redux_builder_amp['swift-social-position']) && 'above-content' == $redux_builder_amp['swift-social-position'])
{
ampforwp_swift_social_icons();
}
if ('above-content' == ampforwp_get_setting('swift-add-this-position'))
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/includes
/class-amp-post-template.php
$attributes['lang'] = $lang;
}
$attributes = apply_filters('ampforwp_modify_html_attributes', $attributes);
$this->add_data_by_key( 'html_tag_attributes', $attributes );
}
private function verify_and_include( $file, $template_type ) {
$located_file = $this->locate_template( $file );
if ( $located_file ) {
$file = $located_file;
}
$file = apply_filters( 'amp_post_template_file', $file, $template_type, $this->post );
if ( ! $this->is_valid_template( $file ) ) {
_doing_it_wrong( __METHOD__, sprintf( esc_html__( 'Path validation for template (%s) failed. Path cannot traverse and must be located in `%s`.', 'accelerated-mobile-pages' ), esc_html( $file ), 'WP_CONTENT_DIR' ), '0.1' );
return;
}
do_action( 'amp_post_template_include_' . $template_type, $this );
include( $file );
}
private function locate_template( $file ) {
$location = 'ampforwp';
$location = apply_filters("ampforwp_template_locate",$location);
$search_file = sprintf( $location.'/%s', basename( $file ) );
return locate_template( array( $search_file ), false );
}
private function is_valid_template( $template ) {
if ( false !== strpos( $template, '..' ) ) {
return false;
}
if ( false !== strpos( $template, './' ) ) {
return false;
}
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/plugins/amp-theme-TFL/single.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/includes
/class-amp-post-template.php
return $value;
}
public function get_customizer_setting( $name, $default = null ) {
$settings = $this->get( 'customizer_settings' );
if ( ! empty( $settings[ $name ] ) ) {
return $settings[ $name ];
}
return $default;
}
public function load() {
$this->load_parts( array( 'single' ) );
}
public function load_parts( $templates ) {
foreach ( $templates as $template ) {
$file = $this->get_template_path( $template );
$this->verify_and_include( $file, $template );
}
}
private function get_template_path( $template ) {
return sprintf( '%s/%s.php', $this->template_dir, $template );
}
private function add_data( $data ) {
$this->data = array_merge( $this->data, $data );
}
private function add_data_by_key( $key, $value ) {
$this->data[ $key ] = $value;
}
private function merge_data_for_key( $key, $value ) {
if ( is_array( $this->data[ $key ] ) ) {
$this->data[ $key ] = array_merge( $this->data[ $key ], $value );
} else {
$this->add_data_by_key( $key, $value );
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/plugins/amp-theme-TFL/single.php"
"single"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/includes
/class-amp-post-template.php
if ( isset( $this->data[ $property ] ) ) {
return $this->data[ $property ] = $value ;
} else {
_doing_it_wrong( __METHOD__, sprintf( __( 'Called for non-existant key ("%s").', 'accelerated-mobile-pages' ), esc_html( $property ) ), '0.1' );
}
return $value;
}
public function get_customizer_setting( $name, $default = null ) {
$settings = $this->get( 'customizer_settings' );
if ( ! empty( $settings[ $name ] ) ) {
return $settings[ $name ];
}
return $default;
}
public function load() {
$this->load_parts( array( 'single' ) );
}
public function load_parts( $templates ) {
foreach ( $templates as $template ) {
$file = $this->get_template_path( $template );
$this->verify_and_include( $file, $template );
}
}
private function get_template_path( $template ) {
return sprintf( '%s/%s.php', $this->template_dir, $template );
}
private function add_data( $data ) {
$this->data = array_merge( $this->data, $data );
}
private function add_data_by_key( $key, $value ) {
$this->data[ $key ] = $value;
}
Arguments
array:1 [
0 => "single"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/accelerated-mobile-pages
/includes
/vendor
/amp
/amp.php
if ( ! function_exists('AMPforWP\\AMPVendor\\amp_prepare_render') ) {
function amp_prepare_render() {
add_action( 'template_redirect', 'AMPforWP\\AMPVendor\\amp_render' );
}
}
if ( ! function_exists('AMPforWP\\AMPVendor\\amp_render') ) {
function amp_render() {
amp_load_classes();
$post_id = get_queried_object_id();
do_action( 'pre_amp_render_post', $post_id );
$post = get_queried_object();
if ( $post instanceof WP_Post && function_exists('amp_activate')) {
amp_render_post( $post );
exit;
}
if ( !function_exists('amp_activate')) {
global $ampforwpTemplate;
amp_add_post_template_actions();
$template = $ampforwpTemplate = new AMP_Post_Template( $post_id );
$template->load();
// Set Header: last modified information
$last_modified = true;
$last_modified = apply_filters('ampforwp_update_last_modified_header', $last_modified);
if( is_singular() && $post_id && $last_modified) {
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
}
exit;
}
}
}
/**
* Bootstraps the AMP customizer.
*
* If the AMP customizer is enabled, initially drop the core widgets and menus panels. If the current
* preview page isn't flagged as an AMP template, the core panels will be re-added and the AMP panel
* hidden.
*
* @internal This callback must be hooked before priority 10 on 'plugins_loaded' to properly unhook
* the core panels.
*
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/template-loader.php
<?php
/**
* Loads the correct template based on the visitor's url
*
* @package WordPress
*/
if ( wp_using_themes() ) {
/**
* Fires before determining which template to load.
*
* @since 1.5.0
*/
do_action( 'template_redirect' );
}
/**
* Filters whether to allow 'HEAD' requests to generate content.
*
* Provides a significant performance bump by exiting before the page
* content loads for 'HEAD' requests. See #14348.
*
* @since 3.5.0
*
* @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
*/
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
exit;
}
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) {
/**
* Fired when the template loader determines a robots.txt request.
*
* @since 2.1.0
*/
do_action( 'do_robots' );
return;
} elseif ( is_favicon() ) {
/**
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
"/home2/hcdagdmy/public_html/timeforlifenow/wp-includes/template-loader.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/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
"/home2/hcdagdmy/public_html/timeforlifenow/wp-blog-header.php"