Error
Call to undefined method WP_Textdomain_Registry::reset() Error thrown with message "Call to undefined method WP_Textdomain_Registry::reset()" Stacktrace: #17 Error in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139 #16 WPML\ST\MO\Hooks\LanguageSwitch:resetTranslationAvailabilityInformation in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:119 #15 WPML\ST\MO\Hooks\LanguageSwitch:changeMoObjects in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:73 #14 WPML\ST\MO\Hooks\LanguageSwitch:switchToLocale in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:48 #13 WPML\ST\MO\Hooks\LanguageSwitch:languageHasSwitched in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php:310 #12 WP_Hook:apply_filters in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php:332 #11 WP_Hook:do_action in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/plugin.php:517 #10 do_action in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1181 #9 SitePress:switch_lang in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2947 #8 SitePress:get_ls_languages in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php:45 #7 WPML_SEO_HeadLangs:head_langs in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php:308 #6 WP_Hook:apply_filters in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php:332 #5 WP_Hook:do_action in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/plugin.php:517 #4 do_action in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/general-template.php:3043 #3 wp_head in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php:88 #2 include in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php:19 #0 require in /home/hyamer/domains/citybee.flairdigital.co/public_html/index.php:17
17
Error
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php139
16
WPML\ST\MO\Hooks\LanguageSwitch resetTranslationAvailabilityInformation
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php119
15
WPML\ST\MO\Hooks\LanguageSwitch changeMoObjects
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php73
14
WPML\ST\MO\Hooks\LanguageSwitch switchToLocale
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php48
13
WPML\ST\MO\Hooks\LanguageSwitch languageHasSwitched
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php310
12
WP_Hook apply_filters
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php332
11
WP_Hook do_action
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/plugin.php517
10
do_action
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php1181
9
SitePress switch_lang
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php2947
8
SitePress get_ls_languages
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php45
7
WPML_SEO_HeadLangs head_langs
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php308
6
WP_Hook apply_filters
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php332
5
WP_Hook do_action
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/plugin.php517
4
do_action
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/general-template.php3043
3
wp_head
/index.php88
2
include
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php106
1
require_once
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php19
0
require
/home/hyamer/domains/citybee.flairdigital.co/public_html/index.php17
/home/hyamer/domains/citybee.flairdigital.co/public_html/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
  1. "Call to undefined method WP_Textdomain_Registry::reset()"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/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();
/home/hyamer/domains/citybee.flairdigital.co/public_html/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'] : [],
/home/hyamer/domains/citybee.flairdigital.co/public_html/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;
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $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, (int) $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 ) {
/home/hyamer/domains/citybee.flairdigital.co/public_html/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 ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/hyamer/domains/citybee.flairdigital.co/public_html/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 ) {
/home/hyamer/domains/citybee.flairdigital.co/public_html/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;
/home/hyamer/domains/citybee.flairdigital.co/public_html/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'] );
                } 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'] );
                    }
                } 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 );
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php
        if ( ! array_key_exists( 'head_langs_priority', $seo_settings ) ) {
            $seo_settings['head_langs_priority'] = 1;
        }
 
        return $seo_settings;
    }
 
    public function init_hooks() {
        if ( $this->sitepress->get_wp_api()->is_front_end() ) {
            $seo_settings = $this->get_seo_settings();
            $head_langs   = $seo_settings['head_langs'];
            if ( $head_langs ) {
                $priority = $seo_settings['head_langs_priority'];
                add_action( 'wp_head', array( $this, 'head_langs' ), (int) $priority );
            }
        }
    }
 
    function head_langs() {
        $languages = $this->sitepress->get_ls_languages( array( 'skip_missing' => true ) );
        /**
         * @since 3.4.0
         */
        $languages = apply_filters( 'wpml_head_langs', $languages );
 
        if ( $this->must_render( $languages ) ) {
            $hreflang_items = array();
            foreach ( $languages as $lang ) {
                /**
                 * @since 3.3.7
                 */
                $alternate_hreflang = apply_filters( 'wpml_alternate_hreflang', $lang['url'], $lang['code'] );
 
                $hreflang_code = $this->get_hreflang_code( $lang );
 
                if ( $hreflang_code ) {
                    $hreflang_items[ $hreflang_code ] = str_replace( '&', '&', $alternate_hreflang );
                }
            }
            $hreflang_items = apply_filters( 'wpml_hreflangs', $hreflang_items );
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $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, (int) $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.
/home/hyamer/domains/citybee.flairdigital.co/public_html/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 ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/hyamer/domains/citybee.flairdigital.co/public_html/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 ) {
/home/hyamer/domains/citybee.flairdigital.co/public_html/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.
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php
 
        <!-- Google Tag Manager -->
        <script type="text/plain" data-cookieconsent="statistics,marketing">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
            'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
            })(window,document,'script','dataLayer','GTM-5S6VVWH');
 
        </script>
        <!-- End Google Tag Manager -->
 
      <meta name="facebook-domain-verification" content="365yok1cb7iqz0trkgrw2b121h5kaz"/>
 
      <?php endif; ?>
 
    <?php endif; ?>
 
  <?php endif; ?>
 
  <?php wp_head(); ?>
 
  <noscript>
    <style>
      /**
      * Reinstate scrolling for non-JS clients
      */
      .simplebar-content-wrapper {
        overflow: auto;
      }
    </style>
  </noscript>
  <script>
    let curLang = '<?= $curLang;?>';
  </script>
</head>
 
<?php if (isset($_COOKIE['page_visited'])): ?>
<body <?php body_class(); ?>>
<?php else: ?>
<body <?php body_class('hidden'); ?>>
/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-content/themes/citybee/index.php"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/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
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-includes/template-loader.php"
    
/home/hyamer/domains/citybee.flairdigital.co/public_html/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
  1. "/home/hyamer/domains/citybee.flairdigital.co/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
Key Value
wp-wpml_current_language
"en"
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/en/faq/"
PHPRC
"/usr/local/lib/php74.ini"
PHP_INI_SCAN_DIR
"/usr/local/lib/conf/php74/"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
PWD
"/usr/local/fastcgi/cgi-bin"
SHLVL
"0"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/index.php"
REMOTE_PORT
"58582"
SCRIPT_FILENAME
"/home/hyamer/domains/citybee.flairdigital.co/public_html/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/usr/local/fastcgi/cgi-bin/php-cgi"
CONTEXT_PREFIX
"/cgi-bin/php-cgi"
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/hyamer/domains/citybee.flairdigital.co/public_html"
REMOTE_ADDR
"100.24.118.144"
SERVER_PORT
"80"
SERVER_ADDR
"194.135.87.134"
SERVER_NAME
"citybee.flairdigital.co"
SERVER_SIGNATURE
""
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"citybee.flairdigital.co"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
UNIQUE_ID
"Y5JLz6QyRf8m6u4uFmurDgAAAYU"
REDIRECT_STATUS
"200"
REDIRECT_HANDLER
"application/x-httpd-php"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"Y5JLz6QyRf8m6u4uFmurDgAAAYU"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_REDIRECT_UNIQUE_ID
"Y5JLz6QyRf8m6u4uFmurDgAAAYU"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1670532047.6834
REQUEST_TIME
1670532047
empty
0. Whoops\Handler\PrettyPageHandler