WordPress.org

Support

Support » Plugins and Hacks » Front-end Editor » [Resolved] [Plugin: Front-end Editor] Can I still escape

[Resolved] [Plugin: Front-end Editor] Can I still escape

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 );

    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 ‘[Resolved] [Plugin: Front-end Editor] Can I still escape’ is closed to new replies.
Skip to toolbar