To Augment priority to the `add_filter` hook function.
-
I recommend to augment the
add_filter
hook function to2000
. In my case I use others plugins that replaced content and this plugins not replaced content.To fix this problem I augmented priority to
2000
like :add_filter( $filter, array( $this, ‘text_replace’ ), 2000 );
}// Note that the priority must be set high enough to avoid <img> tags inserted by the text replace process from
// getting omitted as a result of the comment text sanitation process, if you use this plugin for smilies, for instance.
add_filter( ‘get_comment_text’, array( $this, ‘text_replace_comment_text’ ), 2001 );
add_filter( ‘get_comment_excerpt’, array( $this, ‘text_replace_comment_text’ ), 2002 );Jose Carlos Ramos Carmenates
- The topic ‘To Augment priority to the `add_filter` hook function.’ is closed to new replies.