Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../deprecat.../classes
File: register.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
/**
[1] Fix | Delete
* Registration class. Responsible for handling registration of fields, notifications, and sidebars
[2] Fix | Delete
*
[3] Fix | Delete
* @package Ninja Forms
[4] Fix | Delete
* @subpackage Classes/Register
[5] Fix | Delete
* @copyright Copyright (c) 2014, WPNINJAS
[6] Fix | Delete
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
[7] Fix | Delete
* @since 3.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
class NF_Register
[11] Fix | Delete
{
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Function that registers a notification type
[15] Fix | Delete
*
[16] Fix | Delete
* @access public
[17] Fix | Delete
* @param string $slug - Notification type slug. Must be unique.
[18] Fix | Delete
* @param string $classname - Name of the class that should be used for the notification type.
[19] Fix | Delete
* @since 3.0
[20] Fix | Delete
* @return void
[21] Fix | Delete
*/
[22] Fix | Delete
public function notification_type( $slug, $nicename, $classname ) {
[23] Fix | Delete
if ( ! empty( $slug ) && ! empty( $classname ) && ! isset ( Ninja_Forms()->registered_field_types[ $slug ] ) ) {
[24] Fix | Delete
Ninja_Forms()->registered_notification_types[ $slug ]['nicename'] = $nicename;
[25] Fix | Delete
Ninja_Forms()->registered_notification_types[ $slug ]['classname'] = $classname;
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
}
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function