<?php if ( ! defined( 'ABSPATH' ) ) exit;
final class NF_Actions_Custom extends NF_Abstracts_Action
protected $_name = 'custom';
protected $_tags = array();
protected $_timing = 'normal';
protected $_priority = 10;
public function __construct()
$this->_nicename = esc_html__( 'WP Hook', 'ninja-forms' );
$settings = Ninja_Forms::config( 'ActionCustomSettings' );
$this->_settings = array_merge( $this->_settings, $settings );
public function save( $action_settings )
public function process( $action_settings, $form_id, $data )
if( isset( $action_settings[ 'tag' ] ) ) {
ob_start(); // Use the Output Buffer to suppress output
do_action($action_settings[ 'tag' ], $data);