wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/sirdev/public_html/wp/wp-includes/functions.php on line 6114/** * Add custom WC class to page body. */add_filter( 'body_class', 'custom_class' );function custom_class( $classes ) { if (is_account_page()) { $classes[] = 'woocommerce-block-theme-has-button-styles'; } return $classes;} 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 ] ); } // Pass the value to WP_Hook. array_unshift( $args, $value ); $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args ); array_pop( $wp_current_filter ); return $filtered;} * @since 2.8.0 * * @param string[] $classes An array of body class names. * @param string[] $css_class An array of additional class names added to the body. */ $classes = apply_filters( 'body_class', $classes, $css_class ); return array_unique( $classes );}/** ->getPossibleViewNameFromPath($file = realpath($file)); $view = trim($view, '\\/.'); /** Gather data to be passed to view */ $data = array_reduce(get_body_class(), function ($data, $class) use ($view, $file) { return apply_filters("sage/template/{$class}/data", $data, $view, $file); }, []); $this->app['sage.view'] = $this->view->exists($view) ? $view : $file; $this->app['sage.data'] = $data; // 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 ] ) ); } // Pass the value to WP_Hook. array_unshift( $args, $value ); $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args ); array_pop( $wp_current_filter ); return $filtered;} * * @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() ) { // Set up the WordPress query. wp(); // Load the theme template. require_once ABSPATH . WPINC . '/template-loader.php';}<?php/** * WordPress View Bootstrapper */define('WP_USE_THEMES', true);require __DIR__ . '/wp/wp-blog-header.php';|
Error
|
|---|
Error:
Call to undefined function is_account_page()
at /home/sirdev/public_html/app/themes/bluelabs/app/Filters/woocommerce.php:78
at custom_class(array('home', 'page-template-default', 'page', 'page-id-25', 'wp-embed-responsive'))
(/home/sirdev/public_html/wp/wp-includes/class-wp-hook.php:326)
at WP_Hook->apply_filters(array('home', 'page-template-default', 'page', 'page-id-25', 'wp-embed-responsive'), array(array('home', 'page-template-default', 'page', 'page-id-25', 'wp-embed-responsive'), array()))
(/home/sirdev/public_html/wp/wp-includes/plugin.php:205)
at apply_filters('body_class', array('home', 'page-template-default', 'page', 'page-id-25', 'wp-embed-responsive'), array())
(/home/sirdev/public_html/wp/wp-includes/post-template.php:859)
at get_body_class()
(/home/sirdev/public_html/app/themes/bluelabs/vendor/roots/acorn/src/Roots/Acorn/Sage/Concerns/FiltersTemplates.php:36)
at Roots\Acorn\Sage\Sage->filterTemplateInclude('/home/sirdev/public_html/app/themes/bluelabs/resources/views/front-page.blade.php')
(/home/sirdev/public_html/wp/wp-includes/class-wp-hook.php:324)
at WP_Hook->apply_filters('/home/sirdev/public_html/app/themes/bluelabs/resources/views/front-page.blade.php', array('/home/sirdev/public_html/app/themes/bluelabs/resources/views/front-page.blade.php'))
(/home/sirdev/public_html/wp/wp-includes/plugin.php:205)
at apply_filters('template_include', '/home/sirdev/public_html/app/themes/bluelabs/resources/views/front-page.blade.php')
(/home/sirdev/public_html/wp/wp-includes/template-loader.php:104)
at require_once('/home/sirdev/public_html/wp/wp-includes/template-loader.php')
(/home/sirdev/public_html/wp/wp-blog-header.php:19)
at require('/home/sirdev/public_html/wp/wp-blog-header.php')
(/home/sirdev/public_html/index.php:6)
|