NF_Actions_Redirect

Class NF_Action_Redirect.

Defined (1)

The class is defined in the following location(s).

/includes/Actions/Redirect.php  
  1. final class NF_Actions_Redirect extends NF_Abstracts_Action 
  2. /** 
  3. * @var string 
  4. */ 
  5. protected $_name = 'redirect'; 
  6.  
  7. /** 
  8. * @var array 
  9. */ 
  10. protected $_tags = array(); 
  11.  
  12. /** 
  13. * @var string 
  14. */ 
  15. protected $_timing = 'late'; 
  16.  
  17. /** 
  18. * @var int 
  19. */ 
  20. protected $_priority = 10; 
  21.  
  22. /** 
  23. * Constructor 
  24. */ 
  25. public function __construct() 
  26. parent::__construct(); 
  27.  
  28. $this->_nicename = __( 'Redirect', 'ninja-forms' ); 
  29.  
  30. $settings = Ninja_Forms::config( 'ActionRedirectSettings' ); 
  31.  
  32. $this->_settings = array_merge( $this->_settings, $settings ); 
  33.  
  34. /** 
  35. * PUBLIC METHODS 
  36. */ 
  37.  
  38. public function save( $action_settings ) 
  39.  
  40.  
  41. public function process( $action_settings, $form_id, $data ) 
  42. $data[ 'actions' ][ 'redirect' ] = $action_settings[ 'redirect_url' ]; 
  43.  
  44. return $data;