I am trying to trigger an action in functions.php with the do_action()
function, but I appear to need an attribute.
The following
do_action( 'really_simple_share button="facebook_like"');
does not work…
Can you tell me the proper way to make it work (I have tried many other things that did not work either).
The correct way is to pass first argument as a unique string which acts as an identifier for the action & any additional arguments after that
To attach functions to this action you’ll do
Take a look at this ticket, there is a sample approach to work around this.