Skip to main content
Commonmark migration
Source Link

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

Finding this thread after working on the same solution as the one mentioned by Steve Claridgethe one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } } 
Source Link

Finding this thread after working on the same solution as the one mentioned by Steve Claridge, that is:

Extend the WPSEO_Frontend class and overload the debug_marker function to return ""

I detailed the steps below, although I'm getting stuck in the final step.


###Create a customization plugin

As mentioned in this article from WP Tavern, "the easiest way to accomplish this is to create a functionality plugin that will run alongside it".

So I went on to creating my first plugin following this article from ElegantTheme.

###Extend the relevant class.

That's when things got complicated. I added the following but my overriding function is still not triggered for some reason.

//get the base class if(!class_exists('WPSEO_Frontend')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/wordpress-seo/frontend/class-frontend.php'; } /** * Class Definition */ class WPSEO_Frontend_GUP extends WPSEO_Frontend{ /** * * OVERRIDES function from YOAST SEO * * Outputs or returns the debug marker, which is also used for title replacement when force rewrite is active. * * @param bool $echo Whether or not to echo the debug marker. * * @return string */ public function debug_marker( $echo = true ) { return ''; } }