add_action(new popup_action)

add_action(new popup_action)

Mark Ward -
回帖数:0

Hi Folks,

So I'm currently trying to update the Course Contacts block to include an integrated email solution which would replace the "mailto" link I have used on the current verison.

To do this I have been replacing my hard coded HTML with html_writer:: functions throughout the block. Unfortunately when it comes to launching this "send an email" popup I have come unstuck.

There is documentation for the Output API here which refers to a method for adding a popup action to a link, but I cannot see how this could or would fit in with html_writer::link()?

Apologies if this has been asked before but I really can't find any answers through the search engine.