• Resolved gasoj

    (@gasoj)


    suggestion: modify GA_GDPR and check it:

    
    if ( version_compare( get_bloginfo( 'version' ),'5.7', '>=' ) ) {
    	add_action( 'admin_init', function () {
    		wp_add_privacy_policy_content( 'Simple Giveaways', $this->get_privacy_content() );
    	} );
    } else {
    	add_filter( 'wp_get_default_privacy_policy_content',  array( $this, 'privacy_content' ), 20 );
    }

    `

    • This topic was modified 2 years, 9 months ago by gasoj.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_get_default_privacy_policy_content hook is deprecated’ is closed to new replies.