Home Forums Plugins WooCommerce Email Template Customizer Add new editor shortcodes

Add new editor shortcodes

  • Author
  • #189702

    Abel Vilches


    I have a custom email type who don’t have a order object asociated but order item object (order can to include more than one item, but this email is only for one of this choosed) . This is because email is sended when user customize a separated item of the order. My problem is i need to show metada form this order item separate using something as {meta} or shortcode like [show-data data=”meta”] , i know how to create normal shortcodes but i d’nt how creat {} shortcodes or like [] and get item order to show specific metadata.

    I don’t know if i’m explaining fine. I need help about this.

    There are some way?

    thank you

    PD: I see this into documentation but i don’t understand how works

    function register_live_edit_shortcodes( $shortcodes ) {

    $shortcodes[ $id ] = array(
    ‘{shortcode}’ => ‘Display’,

    return $shortcodes;

    add_filter( ‘viwec_live_edit_shortcodes’, ‘register_live_edit_shortcodes’ );

You must be logged in to see replies to this topic. Click here to login or register