wp_send_json_success( __( 'Your changes has been updated!', 'dokan' ) );
}
public function replace_og_url() {
$seller = get_userdata( get_query_var( 'author' ) );
$og_url = dokan_get_store_url( $seller->ID );
return $og_url;
}
}
* @throws \ErrorException
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
try {
parent::handleError($level, $message, $file, $line, $context);
} catch (Throwable $e) {
if (! apply_filters('acorn/throw_error_exception', true, $e)) {
return false;
}
wp_send_json_success( __( 'Your changes has been updated!', 'dokan' ) );
}
public function replace_og_url() {
$seller = get_userdata( get_query_var( 'author' ) );
$og_url = dokan_get_store_url( $seller->ID );
return $og_url;
}
}
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;
}
*
* @api string $url The open graph URL.
*
* @param Indexable_Presentation $presentation The presentation of an indexable.
*/
return \urldecode( (string) \apply_filters( 'wpseo_opengraph_url', $this->presentation->open_graph_url, $this->presentation ) );
}
}
* Returns a tag in the head.
*
* @return string The tag.
*/
public function present() {
$value = $this->get();
if ( ! \is_string( $value ) || $value === '' ) {
return '';
}
foreach ( $presenters as $presenter ) {
$presenter->presentation = $presentation;
$presenter->helpers = $this->helpers;
$presenter->replace_vars = $this->replace_vars;
$output = $presenter->present();
if ( ! empty( $output ) ) {
// phpcs:ignore WordPress.Security.EscapeOutput -- Presenters are responsible for correctly escaping their output.
echo "\t" . $output . \PHP_EOL;
}
}
// 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 ] ) );
*
* @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;
}
} 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 );
}
/**
$old_wp_query = $wp_query;
// phpcs:ignore WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query -- Reason: The recommended function, wp_reset_postdata, doesn't reset wp_query.
\wp_reset_query();
\do_action( 'wpseo_head' );
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Reason: we have to restore the query.
$GLOBALS['wp_query'] = $old_wp_query;
}
// 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 ] ) );
*
* @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;
}
} 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 );
}
/**
/**
* 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.
*
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
ErrorException
|
---|
ErrorException: Attempt to read property "ID" on bool at /nas/content/live/genebrokeprod/wp-content/plugins/dokan-pro/includes/StoreSeo.php:587 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on bool', '/nas/content/live/genebrokeprod/wp-content/plugins/dokan-pro/includes/StoreSeo.php', 587, array()) (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54) at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on bool', '/nas/content/live/genebrokeprod/wp-content/plugins/dokan-pro/includes/StoreSeo.php', 587) (/nas/content/live/genebrokeprod/wp-content/plugins/dokan-pro/includes/StoreSeo.php:587) at WeDevs\DokanPro\StoreSeo->replace_og_url(null) (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:326) at WP_Hook->apply_filters(null, array(null, object(Indexable_Presentation))) (/nas/content/live/genebrokeprod/wp-includes/plugin.php:205) at apply_filters('wpseo_opengraph_url', null, object(Indexable_Presentation)) (/nas/content/live/genebrokeprod/wp-content/plugins/wordpress-seo/src/presenters/open-graph/url-presenter.php:47) at Yoast\WP\SEO\Presenters\Open_Graph\Url_Presenter->get() (/nas/content/live/genebrokeprod/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php:37) at Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present() (/nas/content/live/genebrokeprod/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:409) at Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('') (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters('', array('')) (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action(array('')) (/nas/content/live/genebrokeprod/wp-includes/plugin.php:517) at do_action('wpseo_head') (/nas/content/live/genebrokeprod/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:383) at Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('') (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters(null, array('')) (/nas/content/live/genebrokeprod/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action(array('')) (/nas/content/live/genebrokeprod/wp-includes/plugin.php:517) at do_action('wp_head') (/nas/content/live/genebrokeprod/wp-includes/general-template.php:3052) at wp_head() (/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php:6) at include('/nas/content/live/genebrokeprod/wp-content/themes/genebrokers/index.php') (/nas/content/live/genebrokeprod/wp-includes/template-loader.php:106) at require_once('/nas/content/live/genebrokeprod/wp-includes/template-loader.php') (/nas/content/live/genebrokeprod/wp-blog-header.php:19) at require('/nas/content/live/genebrokeprod/wp-blog-header.php') (/nas/content/live/genebrokeprod/index.php:17) |