Display custom field containing code without executing it

Displays a Custom Field without executing the Code holded in it

add_filter( 'wpcf_fields_slug_code_value_display', function($content)
{
    $content = preg_replace('/</','<', $content);
    $content = preg_replace('/>/','>', $content);
    return $content;
}
);

Let us know if this snippet is not working for you:

This snippet doesn’t work
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments