Page Not Found
We're very sorry, but that page doesn't exist or has been moved.
Please make sure you have the right URL.
If you still can't find what you're looking for, try using the search form below.
Find a Recipe:
or go to the Recipe Index
/**
* Register the Smart Tag so it will be available to select in the form builder.
*
*/
add_filter( 'wpforms_smart_tags', 'oc_register_smarttag', 10, 1 );
function oc_register_smarttag( $tags ) {
$tags[ 'recipe' ] = 'Recipe';
return $tags;
}
/**
* Process the Smart Tag.
*/
add_filter( 'wpforms_smart_tag_process', 'oc_process_smarttag', 10, 2 );
function oc_process_smarttag( $content, $tag ) {
if ( 'recipe' === $tag ) {
$post_id = get_the_ID();
$link = do_shortcode( '[wprm-recipe-name tag="h2" text_style="normal"]' ) . '
' . do_shortcode( '[wprm-recipe-ingredients header="Ingredients"]' ) . do_shortcode( '[wprm-recipe-instructions header="Instructions" image_size="medium"]' );
$content = str_replace( '{recipe}', $link, $content );
}
return $content;
}
We're very sorry, but that page doesn't exist or has been moved.
Please make sure you have the right URL.
If you still can't find what you're looking for, try using the search form below.
or go to the Recipe Index