wordpress - Slack Slash Command - Passing custom POST paramater? -
is possible send post
data along slash command?
for example, when setting new slash command can set callback url receive post
data slack. in case it's
http://example.com/wp-admin/admin-post.php
i writing wordpress plugin, , in order have plugin parse post
data need pass along action
variable in post
data.
action=update_status
... correct action called:
add_action('admin_update_status', function() { // parse post });
is possible send custom post
parameter slash command? maybe like:
/update action:update_status projecta in q/a
i figured out can send action
parameter get
request so:
http://example.com/wp-admin/admin-post.php?action=update_status
Comments
Post a Comment