Support » Plugin: WP Recipe Maker » Override templates/public folder

  • Resolved maimairel

    (@maimairel)


    Hi,

    Can you for the next update, add the ability to override the templates inside templates/public folder?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brecht

    (@brechtvds)

    Those templates are not intended to be overwritten as you could easily break functionality.
    What is it you’re trying to do specifically?

    Brecht

    I’m a theme developer wanting to integrate WP recipe maker on my latest theme and I want to change the markup of the comment rating form and stars 🙂

    Plugin Author Brecht

    (@brechtvds)

    Right, makes sense. I’ll look into it!

    Brecht

    Plugin Author Brecht

    (@brechtvds)

    We just released WP Recipe Maker 1.21.0 which includes 2 filter hooks to alter the template used for the comment rating (the stars shown in the comments) and the comment rating form (the stars you can hover over and click on).

    You could do something like this:

    function wprm_template_comment_rating_form() {
    return 'your-own-comment-rating-form.php';
    }
    add_filter( 'wprm_template_comment_rating_form', 'wprm_template_comment_rating_form' );

    The hook for the rating it self is wprm_template_comment_rating

    Brecht

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Override templates/public folder’ is closed to new replies.