: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php if ( ! defined( 'ABSPATH' ) ) exit;
final class NF_Actions_Custom extends NF_Abstracts_Action
protected $_name = 'custom';
protected $_tags = array();
protected $_documentation_url = 'https://ninjaforms.com/docs/wp-hook/';
protected $_timing = 'normal';
protected $_priority = 10;
protected $_group = 'core';
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);