Support » Plugin: Classic Editor » Wrong code there is no filter but action !

  • Resolved BackuPs

    (@backups)


    Hi

    I think there is something wrong with this code below.

    	if ( ! classic_editor_is_gutenberg_active() || ! (
    		has_filter( 'replace_editor', 'gutenberg_init' ) ||
    		has_filter( 'load-post.php', 'gutenberg_intercept_edit_post' ) ) ) {

    There is no filter has_filter( ‘load-post.php’, ‘gutenberg_intercept_edit_post’ )

    it should be has_action ( ‘load-post.php’, ‘gutenberg_intercept_edit_post’ ) if you ask me… 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong code there is no filter but action !’ is closed to new replies.