-
Hello!
I wanted to share with you that I am getting this error “Warning: Undefined variable $default in /home/customer/www/smowl.net/public_html/wp-content/themes/child/rank-math.php on line 38”
when I put this line of code:
/**
* Allow developer to default Snippet type by post type.
*
* @param string $type Snippet Type.
* @param string $post_type Post type name.
*
*/
add_filter( ‘rank_math/settings/snippet/type’, function( $type, $post_type ) {
return $default;
}, 10, 2 );is it possible to know why this is happening? Thank you
PD: I have disabled it in the meantime
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘error with code’ is closed to new replies.