• Resolved make-web

    (@make-web)


    Hi,
    Love the plugin have written some custom merge tags but am having some trouble with the more complex ones it seems all code is stripped out (which i understand why) but i need to use either <br/> on \r\n to make format legible is there any hook / workaround for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hey, please extend the HtmlTag Merge Tag instead of StringTag, which sanitizes the value.

    Thread Starter make-web

    (@make-web)

    Brilliant THANKS !!

    for those adding merge tags in a custom trigger here is my code

     $this->add_merge_tag( new \BracketSpace\Notification\Defaults\MergeTag\HtmlTag( [
    			'slug'        => 'enquiry_full_details',
    			'name'        => 'Enquiry Full Details',
    			'resolver'    => function( $trigger ) {
    				return get_enquiry_details($trigger->post_id);	
    			},
    		] ) );

    notice HtmlTag instead of StringTag

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Merge tags multi line’ is closed to new replies.