/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
"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
"/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
"/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
"/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
"/home/sballa24/domains/thepaleomom.com/public_html/wp-blog-header.php"