Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter S o f t f u l l y

    (@softfully)

    Today I disabled the “Enable Aggregate Rating Schema” so you will not be able to see 1 error and 3 warnings at the end.
    So if you want to check at your side then I will enable it again.

    Plugin Support gVectors Support

    (@gvectorssupport)

    @softfully,

    The solution provided in the post is just an example if you got some errors, you’ll need to make some customizations and change the hook code to make it work properly.

    Thread Starter S o f t f u l l y

    (@softfully)

    Please help me out from the following code:

    // wpDiscuz Aggregate Rating Schema.
    add_filter(‘wpdiscuz_rating_schema’, function ( $rating_schema, $key, $postid ){
    $my_rating_schema = ‘SoftwareApplication’;
    $rating_schema = str_replace(__(‘Article Rating’, ‘wpdiscuz’), $my_rating_schema . ‘ Rating’, $rating_schema);
    return preg_replace( ‘|schema\.org\/Product|i’, ‘schema.org/’ . sanitize_text_field($my_rating_schema) , $rating_schema);
    },11, 3);

    View the error image: https://ibb.co/ZSFdHfJ

    View ERROR: https://ibb.co/fqnDC3W

    Code is out of my mind so please help
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to fix Aggregate Rating Schema’ is closed to new replies.