{"id":5255,"date":"2025-12-04T20:11:39","date_gmt":"2025-12-04T20:11:39","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=5255"},"modified":"2025-12-04T20:13:06","modified_gmt":"2025-12-04T20:13:06","slug":"creating-an-action-call","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/filters\/creating-an-action-call","title":{"rendered":"Creating an action call"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Creating your own action call<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">The function other plugins and theme can add if they want to receive your special action call<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/An action handling function you want to call\nadd_action( 'my_action_name', 'handle_my_action_name', 10, 3 );    \/\/ActionName, CallbackFunction, Priority (default10), Number of arguments expected (default\/min 1)\n\/\/add_action( 'my_action_name', '\\MyNamespaceName\\handle_my_action_name', 10, 3 );   \/\/&lt;&lt;&lt;If you are using a namespace\nfunction handle_my_action_name($Argument1, $Argument2, $Argument3)\n{\n  \/\/Do something...\n\n}<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">The call you do that will trigger anywhere my_action_name has been added<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/Calling it\ndo_action('my_action_name', $Argument1, $Argument2, $Argument3);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creating your own action call The function other plugins and theme can add if they want to receive your special action call The call you do that will trigger anywhere my_action_name has been added<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[],"class_list":["post-5255","post","type-post","status-publish","format-standard","hentry","category-filters"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=5255"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5255\/revisions"}],"predecessor-version":[{"id":5258,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5255\/revisions\/5258"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=5255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=5255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=5255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}