{"id":7423,"date":"2021-05-15T16:37:42","date_gmt":"2021-05-15T16:37:42","guid":{"rendered":"https:\/\/docs.campaignsuite.nl\/docs\/developers\/filters\/cs_get_feed_actions\/"},"modified":"2021-05-15T16:39:03","modified_gmt":"2021-05-15T16:39:03","slug":"cs_get_feed_actions","status":"publish","type":"docs","link":"https:\/\/docs.campaignsuite.nl\/en\/docs\/developers\/filters\/cs_get_feed_actions\/","title":{"rendered":"cs_get_feed_actions"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"7423\" class=\"elementor elementor-7423\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9661c0f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9661c0f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-853bc97\" data-id=\"853bc97\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8ae0ca7 elementor-widget elementor-widget-text-editor\" data-id=\"8ae0ca7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h4>Description<\/h4><p>This filter allows you to add custom feed actions to Gravity Forms.<\/p><h4>Use<\/h4>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5b0509a elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"5b0509a\" data-element_type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"php\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-php\">\r\n\t\t\t\t\tadd_filter(&#039;cs_get_feed_actions&#039;, &#039;get_feed_actions&#039;, 10, 1);\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6228f3f elementor-widget elementor-widget-text-editor\" data-id=\"6228f3f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h4>Parameters<\/h4><ul><li><strong> $actions <em>(array)<\/em> <\/strong><br \/>This is an array of the available actions. You can add more elements to this array for custom actions.<\/li><\/ul><h4>Example<\/h4>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7d015ba elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"7d015ba\" data-element_type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"markup\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-markup\">\r\n\t\t\t\t\tfunction get_feed_actions($actions)\n{\n  $extraActions = [[\n    &#039;label&#039; =&gt; &#039;Maak een nieuwe Lead aan&#039;,\n    &#039;value&#039; =&gt; &#039;custom_lead&#039;,\n    &#039;object&#039; =&gt; &#039;Lead&#039;,\n    &#039;objectName&#039; =&gt; &#039;Lead&#039;\n  ]];\n  return array_merge($actions, $extraActions);\n}\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Description This filter allows you to add custom feed actions to Gravity Forms. Use add_filter(&#039;cs_get_feed_actions&#039;, &#039;get_feed_actions&#039;, 10, 1); Parameters $actions (array) This is an array of the available actions. You can add more elements to this array for custom actions. Example function get_feed_actions($actions) { $extraActions = [[ &#039;label&#039; =&gt; &#039;Maak een nieuwe Lead aan&#039;, &#039;value&#039; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7407,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-7423","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/comments?post=7423"}],"version-history":[{"count":3,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7423\/revisions"}],"predecessor-version":[{"id":7426,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7423\/revisions\/7426"}],"up":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7407"}],"wp:attachment":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/media?parent=7423"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/doc_tag?post=7423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}