Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../deprecat.../includes
File: actions.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
/**
[1] Fix | Delete
* Front-end Actions
[2] Fix | Delete
*
[3] Fix | Delete
* @package Ninja Forms
[4] Fix | Delete
* @subpackage Functions
[5] Fix | Delete
* @copyright Copyright (c) 2014, WP Ninjas
[6] Fix | Delete
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
[7] Fix | Delete
* @since 2.7
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
// Exit if accessed directly
[11] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit;
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Hooks NF actions, when present in the $_GET superglobal. Every nf_action
[15] Fix | Delete
* present in $_GET is called using WordPress's do_action function. These
[16] Fix | Delete
* functions are called on init.
[17] Fix | Delete
*
[18] Fix | Delete
* @since 2.7
[19] Fix | Delete
* @return void
[20] Fix | Delete
*/
[21] Fix | Delete
function nf_get_actions() {
[22] Fix | Delete
if ( isset( $_GET['nf_action'] ) ) {
[23] Fix | Delete
do_action( 'nf_' . sanitize_text_field($_GET['nf_action']), $_GET );
[24] Fix | Delete
}
[25] Fix | Delete
}
[26] Fix | Delete
add_action( 'init', 'nf_get_actions', 999 );
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Hooks NF actions, when present in the $_POST superglobal. Every nf_action
[30] Fix | Delete
* present in $_POST is called using WordPress's do_action function. These
[31] Fix | Delete
* functions are called on init.
[32] Fix | Delete
*
[33] Fix | Delete
* @since 2.7
[34] Fix | Delete
* @return void
[35] Fix | Delete
*/
[36] Fix | Delete
function nf_post_actions() {
[37] Fix | Delete
if ( isset( $_POST['nf_action'] ) ) {
[38] Fix | Delete
do_action( 'nf_' . sanitize_text_field($_POST['nf_action']), $_POST );
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
add_action( 'init', 'nf_post_actions', 999 );
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function