pedrocordeiro
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [Meta pixel for WordPress] CRITICAL : Uncaught ErrorHi @marijastuntcoders ,
The wordpress function get_the_terms return false if no categories are found after the applied filter get_the_terms. So the final code of FacebookWordpressWooCommerce->getProductCategory( $product_id ) should be:
private static function getProductCategory( $product_id ) {
$categories = get_the_terms(
$product_id,
'product_cat'
);
return is_array($categories) && count( $categories ) > 0 ? $categories[0]->name : null;
}$categories inside count function must be a countable.
Forum: Plugins
In reply to: [Meta pixel for WordPress] Fatal error when product does not have categoriesSame problem here. is_array($categories) solves the problem until the next update…
Forum: Plugins
In reply to: [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.] Preload FontsYou’re god damn right! 😀 It works now.
Thank you Daan.
Forum: Plugins
In reply to: [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.] Preload FontsIt’s true… Preloading is not working on version 4 (4.2.3). It drives to 404 error on each preload.
You can see it here: https://ofisfera.woobik.dev/
Forum: Plugins
In reply to: [WP Rocket Footer JS] data-no-minify=”1″ attribute is not workingDone. Waiting for you.
Forum: Plugins
In reply to: [WP Rocket Footer JS] data-no-minify=”1″ attribute is not workingdata-no-minify=”1″. Sorry
Viewing 6 replies - 1 through 6 (of 6 total)