admin管理员组文章数量:1392076
I want to send my post to Telegram when it is created. I have read discussion here and inspected these code from n7studio, but my function send_posts_to_Telegram
doesn't fire when I publish post
. Isn't rest_after_insert_post
fire when post are being published from REST API and Gutenberg?
add_action('rest_after_insert_post', 'send_posts_to_Telegram', 10, 3);
function send_posts_to_Telegram($post, $request, $creating = true){
//Send post to Telegram
}
本文标签: rest apiDo something when publish a post in Gutenberg with hook restafterinsertpost
版权声明:本文标题:rest api - Do something when publish a post in Gutenberg with hook rest_after_insert_post 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744686744a2619747.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论