Whoops \ Exception \ ErrorException (E_WARNING)
Only the first byte will be assigned to the string offset Whoops\Exception\ErrorException thrown with message "Only the first byte will be assigned to the string offset" Stacktrace: #25 Whoops\Exception\ErrorException in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php:297 #24 Whoops\Run:handleError in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php:297 #23 WC_Memberships_User_Memberships:get_user_memberships in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/functions/wc-memberships-functions-user-memberships.php:56 #22 wc_memberships_get_user_memberships in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:444 #21 Mai_Publisher_Tracking:get_membership_plan_ids in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:409 #20 Mai_Publisher_Tracking:set_membership_plan_ids in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:246 #19 Mai_Publisher_Tracking:set_site_dimension_5 in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:195 #18 Mai_Publisher_Tracking:get_site_dimensions in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:74 #17 Mai_Publisher_Tracking:get_vars in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php:50 #16 Mai_Publisher_Tracking:enqueue in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php:324 #15 WP_Hook:apply_filters in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php:348 #14 WP_Hook:do_action in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/plugin.php:517 #13 do_action in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/script-loader.php:2265 #12 wp_enqueue_scripts in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php:324 #11 WP_Hook:apply_filters in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php:348 #10 WP_Hook:do_action in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/plugin.php:517 #9 do_action in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/general-template.php:3050 #8 wp_head in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/header.php:35 #7 require_once in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template.php:810 #6 load_template in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template.php:745 #5 locate_template in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/general-template.php:48 #4 get_header in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/lib/framework.php:24 #3 genesis in /home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/single.php:15 #2 include in /home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/sballa24/domains/thepaleomom.com/public_html/wp-blog-header.php:19 #0 require in /home/sballa24/domains/thepaleomom.com/public_html/index.php:17
Stack frames (26)
25
Whoops\Exception\ErrorException
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php297
24
Whoops\Run handleError
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php297
23
WC_Memberships_User_Memberships get_user_memberships
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/functions/wc-memberships-functions-user-memberships.php56
22
wc_memberships_get_user_memberships
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php444
21
Mai_Publisher_Tracking get_membership_plan_ids
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php409
20
Mai_Publisher_Tracking set_membership_plan_ids
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php246
19
Mai_Publisher_Tracking set_site_dimension_5
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php195
18
Mai_Publisher_Tracking get_site_dimensions
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php74
17
Mai_Publisher_Tracking get_vars
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php50
16
Mai_Publisher_Tracking enqueue
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php324
15
WP_Hook apply_filters
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php348
14
WP_Hook do_action
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/plugin.php517
13
do_action
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/script-loader.php2265
12
wp_enqueue_scripts
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php324
11
WP_Hook apply_filters
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/class-wp-hook.php348
10
WP_Hook do_action
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/plugin.php517
9
do_action
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/general-template.php3050
8
wp_head
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/header.php35
7
require_once
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template.php810
6
load_template
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template.php745
5
locate_template
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/general-template.php48
4
get_header
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/lib/framework.php24
3
genesis
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/single.php15
2
include
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template-loader.php106
1
require_once
/home/sballa24/domains/thepaleomom.com/public_html/wp-blog-header.php19
0
require
/home/sballa24/domains/thepaleomom.com/public_html/index.php17
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php
    /**
     * Returns all user memberships.
     *
     * @since 1.0.0
     *
     * @param int|\WP_User $user_id optional, defaults to current user
     * @param array $args optional arguments
     * @return \WC_Memberships_User_Membership[] array of user memberships
     */
    public function get_user_memberships( $user_id = null, $args = array() ) {
 
        $args = wp_parse_args( $args, array(
            'status' => 'any',
        ) );
 
        // add the wcm- prefix for the status if it's not "any"
        foreach ( (array) $args['status'] as $index => $status ) {
 
            if ( 'any' !== $status ) {
                $args['status'][ $index ] = 'wcm-' . $status;
            }
        }
 
        if ( ! $user_id ) {
            $user_id = get_current_user_id();
        } elseif ( $user_id instanceof \WP_User ) {
            $user_id = $user_id->ID;
        }
 
        $user_memberships = array();
 
        if ( is_numeric( $user_id ) && $user_id > 0 ) {
 
            $posts_args = array(
                'author'      => $user_id,
                'post_type'   => 'wc_user_membership',
                'post_status' => $args['status'],
                'nopaging'    => true,
            );
 
Arguments
  1. "Only the first byte will be assigned to the string offset"
    
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-user-memberships.php
    /**
     * Returns all user memberships.
     *
     * @since 1.0.0
     *
     * @param int|\WP_User $user_id optional, defaults to current user
     * @param array $args optional arguments
     * @return \WC_Memberships_User_Membership[] array of user memberships
     */
    public function get_user_memberships( $user_id = null, $args = array() ) {
 
        $args = wp_parse_args( $args, array(
            'status' => 'any',
        ) );
 
        // add the wcm- prefix for the status if it's not "any"
        foreach ( (array) $args['status'] as $index => $status ) {
 
            if ( 'any' !== $status ) {
                $args['status'][ $index ] = 'wcm-' . $status;
            }
        }
 
        if ( ! $user_id ) {
            $user_id = get_current_user_id();
        } elseif ( $user_id instanceof \WP_User ) {
            $user_id = $user_id->ID;
        }
 
        $user_memberships = array();
 
        if ( is_numeric( $user_id ) && $user_id > 0 ) {
 
            $posts_args = array(
                'author'      => $user_id,
                'post_type'   => 'wc_user_membership',
                'post_status' => $args['status'],
                'nopaging'    => true,
            );
 
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/woocommerce-memberships/src/functions/wc-memberships-functions-user-memberships.php
 * @param int|\WP_Post $id optional post object or post ID of the user membership, or user ID
 * @param string|int|\WP_Post $plan optional Membership Plan slug, post object or related post ID
 * @return \WC_Memberships_User_Membership|\WC_Memberships_Integration_Subscriptions_User_Membership|null The User Membership or null if not found
 */
function wc_memberships_get_user_membership( $id = null, $plan = null ) {
    return wc_memberships()->get_user_memberships_instance()->get_user_membership( $id, $plan );
}
 
 
/**
 * Returns all memberships for a user.
 *
 * @since 1.0.0
 *
 * @param int|\WP_User $user_id optional, defaults to current user
 * @param array $args optional arguments
 * @return \WC_Memberships_User_Membership[]|\WC_Memberships_Integration_Subscriptions_User_Membership[] array of user memberships
 */
function wc_memberships_get_user_memberships( $user_id = null, $args = array() ) {
    return wc_memberships()->get_user_memberships_instance()->get_user_memberships( $user_id, $args );
}
 
 
/**
 * Returns all active memberships for a user.
 *
 * Note: does not include just memberships in purely 'active' status, but memberships that give active access to a plan.
 *
 * @since 1.7.0
 *
 * @param int $user_id optional, defaults to current user
 * @param array $args optional arguments
 * @return \WC_Memberships_User_Membership[]|\\WC_Memberships_Integration_Subscriptions_User_Membership[] array of user memberships
 */
function wc_memberships_get_user_active_memberships( $user_id = null, $args = array() ) {
 
    $args['status'] = wc_memberships()->get_user_memberships_instance()->get_active_access_membership_statuses();
 
    return wc_memberships()->get_user_memberships_instance()->get_user_memberships( $user_id, $args );
}
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
     * @param int $user_id The logged in user ID.
     *
     * @return array|int[]
     */
    function get_membership_plan_ids( $user_id ) {
        static $cache = [];
 
        if ( isset( $cache[ $user_id ] ) ) {
            return $cache[ $user_id ];
        }
 
        $cache[ $user_id ] = [];
 
        // Bail if Woo Memberships is not active.
        if ( ! ( class_exists( 'WooCommerce' ) && function_exists( 'wc_memberships_get_user_memberships' ) ) ) {
            return $cache[ $user_id ];
        }
 
        // Get active memberships.
        $memberships = wc_memberships_get_user_memberships( $user_id, array( 'status' => 'active' ) );
 
        if ( $memberships ) {
            // Get active membership IDs.
            $cache[ $user_id ] = wp_list_pluck( $memberships, 'plan_id' );
        }
 
        return $cache[ $user_id ];
    }
 
    /**
     * Sets user taxonomies.
     *
     * @since 0.3.0
     *
     * @param array $args
     *
     * @return array
     */
    function set_user_taxonomies( $args ) {
        $taxonomies = $this->get_user_taxonomies( $this->user_id );
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
        $type = maipub_get_current_page( 'name' );
 
        if ( ! $type ) {
            return;
        }
 
        $this->site_dimensions[9] = $type;
    }
 
    /**
     * Sets membership plan IDs in args.
     *
     * @since 0.3.0
     *
     * @param array $args
     *
     * @return array
     */
    function set_membership_plan_ids( $args ) {
        $plan_ids = $this->get_membership_plan_ids( $this->user_id );
 
        // Handles plan IDs.
        if ( $plan_ids ) {
            $args['plan_ids'] = $plan_ids;
        }
 
        return $args;
    }
 
    /**
     * Gets membership plan IDs.
     * Cached incase we need to call this again later on same page load.
     *
     * @since 0.3.0
     *
     * @param int $user_id The logged in user ID.
     *
     * @return array|int[]
     */
    function get_membership_plan_ids( $user_id ) {
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
    // TODO.
    function set_site_dimension_1() {}
    function set_site_dimension_2() {}
    function set_site_dimension_3() {}
    function set_site_dimension_4() {}
 
    /**
     * Gets user group/membership/team.
     *
     * There is a filter that passes generic args for the group.
     * This leaves us open to use dimension 5 for any sort of User Grouping we want, not just WooCommerce.
     * We could use WP User Groups (taxonomy) or anything else, without modifying the plugin code.
     *
     * @since 0.3.0
     *
     * @return array
     */
    function set_site_dimension_5() {
        $args = [];
        $args = $this->set_membership_plan_ids( $args );
        $args = $this->set_user_taxonomies( $args );
 
        /**
         * Filter to manually add group per-site.
         *
         * @param string $name    The group name (empty for now).
         * @param int    $user_id The logged in user ID.
         * @param array  $args    The user data args.
         *
         * @return string
         */
        $name  = '';
        $group = apply_filters( 'mai_publisher_group_name', $name, $this->user_id, $args );
        $group = trim( esc_html( $group ) );
 
        if ( ! $group ) {
            return;
        }
 
        // Set the Group data.
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
        }
 
        return $vars;
    }
 
    /**
     * Gets custom dimensions.
     *
     * @since 0.3.0
     *
     * @return array
     */
    function get_site_dimensions() {
        $this->site_dimensions = [];
 
        $this->set_site_dimension_1();
        $this->set_site_dimension_2();
        $this->set_site_dimension_3();
        $this->set_site_dimension_4();
        $this->set_site_dimension_5();
        $this->set_site_dimension_6();
        $this->set_site_dimension_7();
        $this->set_site_dimension_8();
        $this->set_site_dimension_9();
 
        return apply_filters( 'mai_publisher_site_dimensions', $this->site_dimensions );
    }
 
    /**
     * Gets global custom dimensions.
     *
     * @since 0.3.0
     *
     * @return array
     */
    function get_global_dimensions() {
        $this->global_dimensions = [];
 
        $this->set_global_dimension_1();
        $this->set_global_dimension_2();
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
     *
     * @since 0.3.0
     *
     * @return void
     */
    function get_vars() {
        $vars             = [];
        $this->user       = wp_get_current_user();
        $this->user_id    = $this->user ? $this->user->ID : 0;
        $this->user_email = $this->user ? $this->user->user_email : '';
        $site_url         = maipub_get_option( 'matomo_url', false );
        $site_id          = maipub_get_option( 'matomo_site_id', false );
        $matomo_enabled   = maipub_get_option( 'matomo_enabled', false );
        $matomo_enabled   = $matomo_enabled && $site_url && $site_id;
        $analytics        = [];
 
        // Handle site tracking vars.
        if ( $matomo_enabled ) {
            $vars['analytics'] = [];
            $dimensions        = $this->get_site_dimensions();
            $analytics         = [
                'url'    => trailingslashit( $site_url ),
                'id'     => absint( $site_id ),
                'toPush' => [],
            ];
 
            // If user email, set it as setUserId.
            if ( $this->user_email ) {
                $analytics['toPush'][] = [ 'setUserId', $this->user_email ];
            }
 
            // If dimensions, set them.
            if ( $dimensions ) {
                foreach ( $dimensions as $index => $value ) {
                    $analytics['toPush'][] = [ 'setCustomDimension', $index, $value ];
                }
            }
 
            $analytics['toPush'][] = [ 'enableLinkTracking' ];
            $analytics['toPush'][] = [ 'trackPageView' ];
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/plugins/mai-publisher/classes/class-tracking.php
    }
 
    /**
     * Enqueues script if we're tracking the current page.
     *
     * @since 0.3.0
     *
     * @return void
     */
    function enqueue() {
        // Can run this too early so it's inside the callback.
        if ( ! maipub_should_track() ) {
            return;
        }
 
        $suffix = maipub_get_suffix();
        $file   = "assets/js/mai-publisher-analytics{$suffix}.js";
 
        wp_enqueue_script( 'mai-publisher-analytics', maipub_get_file_data( $file, 'url' ), [], maipub_get_file_data( $file, 'version' ), [ 'strategy' => 'async', 'in_footer' => true ] );
        wp_localize_script( 'mai-publisher-analytics', 'maiPubAnalyticsVars', $this->get_vars() );
    }
 
    /**
     * Get localized vars for JS.
     *
     * @since 0.3.0
     *
     * @return void
     */
    function get_vars() {
        $vars             = [];
        $this->user       = wp_get_current_user();
        $this->user_id    = $this->user ? $this->user->ID : 0;
        $this->user_email = $this->user ? $this->user->user_email : '';
        $site_url         = maipub_get_option( 'matomo_url', false );
        $site_id          = maipub_get_option( 'matomo_site_id', false );
        $matomo_enabled   = maipub_get_option( 'matomo_enabled', false );
        $matomo_enabled   = $matomo_enabled && $site_url && $site_id;
        $analytics        = [];
 
/home/sballa24/domains/thepaleomom.com/public_html/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.
/home/sballa24/domains/thepaleomom.com/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 ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/public_html/wp-includes/script-loader.php
     * @since 2.8.0
     */
    do_action( 'wp_print_footer_scripts' );
}
 
/**
 * Wrapper for do_action( 'wp_enqueue_scripts' ).
 *
 * Allows plugins to queue scripts for the front end using wp_enqueue_script().
 * Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
 *
 * @since 2.8.0
 */
function wp_enqueue_scripts() {
    /**
     * Fires when scripts and styles are enqueued.
     *
     * @since 2.8.0
     */
    do_action( 'wp_enqueue_scripts' );
}
 
/**
 * Prints the styles queue in the HTML head on admin pages.
 *
 * @since 2.8.0
 *
 * @global bool $concatenate_scripts
 *
 * @return array
 */
function print_admin_styles() {
    global $concatenate_scripts;
 
    $wp_styles = wp_styles();
 
    script_concat_settings();
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_items( false );
 
/home/sballa24/domains/thepaleomom.com/public_html/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.
/home/sballa24/domains/thepaleomom.com/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 ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/home/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/public_html/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' );
/home/sballa24/domains/thepaleomom.com/public_html/wp-includes/template.php
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * 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 );
}
 
Arguments
  1. "/home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/header.php"
    
/home/sballa24/domains/thepaleomom.com/public_html/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.
/home/sballa24/domains/thepaleomom.com/public_html/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 $name The name of the specialized footer.
 * @param array  $args Optional. Additional arguments passed to the footer template.
 *                     Default empty array.
/home/sballa24/domains/thepaleomom.com/public_html/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
         */
/home/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/single.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/
 */
 
// This file handles single entries, but only exists for the sake of child theme forward compatibility.
genesis();
 
/home/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/public_html/wp-content/themes/genesis/single.php"
    
/home/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/public_html/wp-includes/template-loader.php"
    
/home/sballa24/domains/thepaleomom.com/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/sballa24/domains/thepaleomom.com/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
Key Value
fikker-KEPi-Z7Xa
"BsBSbwRLNOhAxs6UKNM9KWTshGBARUhu"
fikker-61vm-nk2N
"MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E"
PHPSESSID
"9b30f0fd32940a704ae6763a94e08980"
empty
Key Value
SERVER_SOFTWARE
"nginx/1.24.0"
REQUEST_URI
"/recipe-plantain-pancakes-with-maple/"
USER
"sballa24"
HOME
"/home/sballa24"
HTTP_COOKIE
"fikker-KEPi-Z7Xa=BsBSbwRLNOhAxs6UKNM9KWTshGBARUhu; fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E; PHPSESSID=9b30f0fd32940a704ae6763a94e08980"
HTTP_CF_CONNECTING_IP
"3.144.172.198"
HTTP_REFERER
"https://www.thepaleomom.com/recipe-plantain-pancakes-with-maple/feed"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"8a022f1629baa1f7-MSP"
HTTP_X_FORWARDED_FOR
"3.144.172.198"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_HOST
"www.thepaleomom.com"
SERVER_PROTOCOL
"HTTP/2.0"
SERVER_PORT
"443"
SERVER_NAME
"www.thepaleomom.com"
SERVER_ADDR
"::ffff:15.204.189.120"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"/home/sballa24/domains/thepaleomom.com/public_html/index.php"
REQUEST_SCHEME
"https"
REQUEST_METHOD
"GET"
REMOTE_PORT
""
REMOTE_ADDR
"3.144.172.198"
REDIRECT_STATUS
"200"
QUERY_STRING
""
HTTPS
"on"
GATEWAY_INTERFACE
"CGI/1.1"
DOCUMENT_URI
"/index.php"
DOCUMENT_ROOT
"/home/sballa24/domains/thepaleomom.com/public_html"
CONTENT_TYPE
""
CONTENT_LENGTH
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1720463829.495
REQUEST_TIME
1720463829
empty
0. Whoops\Handler\PrettyPageHandler