Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    (@scribu)

    Finally, someone that cares about security. ??

    You can use the ‘post_meta’ filter:

    function my_custom_field_escaping( $content, $post_id, $key ) {
    	if ( 'some_key' == $key )
    		return strip_tags( $content );
    
    	return $content;
    }
    add_filter( 'post_meta', 'my_custom_field_escaping', 10, 3 );
    Thread Starter sam_a

    (@sam_a)

    Got it, thanks.

    I’ll see if I can escape based on the $type parameter if my filter function…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Front-end Editor] Can I still escape’ is closed to new replies.