{"id":3842,"date":"2021-08-17T12:43:47","date_gmt":"2021-08-17T11:43:47","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=3842"},"modified":"2025-05-10T09:35:40","modified_gmt":"2025-05-10T08:35:40","slug":"actions-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/actions\/actions-general","title":{"rendered":".Actions general"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Documentation<\/h4>\n\n\n\n<p><a href=\"https:\/\/developer.wordpress.org\/apis\/hooks\/action-reference\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Action Reference<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Define an action<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/add_action( 'MyActionName',  'MyActionName' );\nadd_action( 'MyActionName',  '\\MyNamespaceName\\MyActionName' );\nfunction MyActionName()\n{\n\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Trigger running of an action<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>  do_action('MyActionName');<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Documentation WordPress Action Reference Define an action Trigger running of an action<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[309],"tags":[],"class_list":["post-3842","post","type-post","status-publish","format-standard","hentry","category-actions"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3842","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=3842"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3842\/revisions"}],"predecessor-version":[{"id":5010,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3842\/revisions\/5010"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=3842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=3842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=3842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}