Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

Jon Brown on "[Plugin: WordPress SEO by Yoast] Allow Tracking Popup is driving me crazy"

$
0
0

I know it's random that this works on some sites and doesn't on others. I spent way too much time trying to debug it. I'm guessing it's in memcached, but I give up and I'm also sick of having to edit class-pointers.php to comment out:

// add_action( 'admin_print_footer_scripts', array( $this, 'tracking_request' ) );

every time the plugin is updated.

FWIW, when I echo print_r($options) at class-pointers.php:36, it shows get_option('wpseo'); has returned null. It's actually set in the DB, but it' still returning null. Hence !isset($options['yoast_tracking'] is true and it runs.

Why get_option('wpseo'); returns null when that option is set in the DB I have no idea.

Anyway, I'm trying to remove this action from functions.php so that it will survive plugin updates, but my code isn't working and I'm not sure why (probably because I'm class challenged).

add_action( 'admin_enqueue_scripts', 'remove_wpseo_tracking_popup' , 15);

function remove_wpseo_tracking_popup() {
	if ( !is_admin())
		return;
	global $wpseo_pointers;
	remove_action( 'admin_print_footer_scripts', array( $wpseo_pointers, 'tracking_request' ) );
}

It doesn't work... I'm not sure why, maybe because it's instead a method enqueue()? I've tried various hooks and priorities, but by all means tell me I missed something.

http://wordpress.org/extend/plugins/wordpress-seo/


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>