I added a function to the filter hook tag 'content_filtered_edit_pre'
, but it doesn't seem to fire no matter what I do. I am also aware of 'content_edit_pre'
, but I am curious as to when this filter hook is called. The following does not result in 'filtered ' being added to the front of my post when I open it in the edit screen, even after another filter has been run:
function test_of_content_filtered_edit_pre( $content, $post_id ) {
return "filtered ".$content;
}
add_filter( 'content_filtered_edit_pre', 'test_of_content_filtered_edit_pre', 10, 2 );
The only documentation I can find on the Internet seems to be from the wordpress codex or copies of it.
Codex
saysThis filter runs in wp-admin when loading a post for editing.
'content_edit_pre'
ran at this time and not'content_filtered_edit_pre'
. Would you be able to provide an example of an instance where it works for you?