Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// moved to
Copy link

senlin commented Jun 10, 2018

Hi @gschoppe Greg,

I came to realise that the filter of the plugin_action_links with the classic_editor_addon_remove_settings_link function does not work.

To make it work, the filter needs to be replaced with an action:
add_action( 'plugins_loaded', 'classic_editor_addon_remove_settings_link' );

And the function itself can be simplified by:

function classic_editor_addon_remove_settings_link() {
	remove_filter( 'plugin_action_links', 'classic_editor_add_settings_link' );

You can see, the changes also in my original gist (updated of course with your changes).

What do you think about releasing this together as a plugin in the WP Plugin Repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment