Docly

cs_get_feed_actions

Estimated reading: 1 minute

Description

This filter allows you to add custom feed actions to Gravity Forms.

Use

				
					add_filter('cs_get_feed_actions', 'get_feed_actions', 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 = [[
    'label' => 'Maak een nieuwe Lead aan',
    'value' => 'custom_lead',
    'object' => 'Lead',
    'objectName' => 'Lead'
  ]];
  return array_merge($actions, $extraActions);
}