/includes/Actions/Redirect.php

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