NF_Register
Registration class.
Defined (1)
The class is defined in the following location(s).
- /deprecated/classes/register.php
- class NF_Register
- {
- /**
- * Function that registers a notification type
- *
- * @access public
- * @param string $slug - Notification type slug. Must be unique.
- * @param string $classname - Name of the class that should be used for the notification type.
- * @since 3.0
- * @return void
- */
- public function notification_type( $slug, $nicename, $classname ) {
- if ( ! empty( $slug ) && ! empty( $classname ) && ! isset ( Ninja_Forms()->registered_field_types[ $slug ] ) ) {
- Ninja_Forms()->registered_notification_types[ $slug ]['nicename'] = $nicename;
- Ninja_Forms()->registered_notification_types[ $slug ]['classname'] = $classname;
- }
- }
- }