Search for Resources and Solutions

set_composer_header_items - add links in the composer's header

set_composer_header_items is a method in the Midrub Emails Composer which allows you to add links in the Midrub Emails Composer's header. 

By default the composer's header don't has nothing. The header could even be disabled.

The set_composer_header_items has these parameters:

  • name - contains a string with the item's name. Will be used as item's text.
  • location - contains (left|center|right) strings which says where will be added the item.
  • slug - containts the item's slug and it's used as a link.
  • dropdown - contains boolean value which says if the item is a dropdown or no.
  • run - contains the function with one parameter. When user clicks on the menu's item, will be provided to run the event and then you can process the data.


Was this article helpful?