Suggestion for your API
-
I’ve been asked to use your plugin for a project at work. I’m using some of the hooks available to customize keywords and email subject, but I find these hooks difficult to use because they don’t include the post object / post ID as arguments. In my particular case I want to customize the email subject based on the post’s category, but when my ‘s2_email_subject’ hook is called I have no idea what post the email is being generated for.
I found a workaround for this by abusing some earlier hooks, but it would be nice if the API had a function that would let me grab the post or posts that triggered the email.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Suggestion for your API’ is closed to new replies.