• Resolved carmolim

    (@carmolim)


    I want to know if its possible, without modifying the plugin to add a title before the summary info:

    Example

    Thanks in advance.

    • This topic was modified 4 years, 5 months ago by carmolim.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter carmolim

    (@carmolim)

    Already did it, I used the add_filter to add the title. Thanks for the well written plugin! For future reference:

    
        /**
        * Summary title
        */
    
        add_filter('wapf/html/product_totals', 'summary_title', 40, 1 );
    
        function summary_title($totals_html ){
            echo '<h2>' . _('Totals') . '</h2>';
            echo $totals_html;
        }
    
    Thread Starter carmolim

    (@carmolim)

    Sadly there’s’ no filter in the field_group function for customization.

    Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @carmolim

    You can always use the WordPress filter the_content if you need to change output beyond our plugin filters

    I’m marking this ticket as complete because you’ve answered your own question :).

    Thread Starter carmolim

    (@carmolim)

    Hello @maartenbelmans could you show me an example using the the_content filter to alter the plugin?

    Thread Starter carmolim

    (@carmolim)

    Hello @maartenbelmans I reopened the topic, could you please show me an example?

    Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @carmolim

    Sorry, we can’t really help with custom coding. Thank you for understanding!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add a title before the summary’ is closed to new replies.