NF_Register

Registration class.

Defined (1)

The class is defined in the following location(s).

/deprecated/classes/register.php  
  1. class NF_Register 
  2.  
  3. /** 
  4. * Function that registers a notification type 
  5. *  
  6. * @access public 
  7. * @param string $slug - Notification type slug. Must be unique. 
  8. * @param string $classname - Name of the class that should be used for the notification type. 
  9. * @since 3.0 
  10. * @return void 
  11. */ 
  12. public function notification_type( $slug, $nicename, $classname ) { 
  13. if ( ! empty( $slug ) && ! empty( $classname ) && ! isset ( Ninja_Forms()->registered_field_types[ $slug ] ) ) { 
  14. Ninja_Forms()->registered_notification_types[ $slug ]['nicename'] = $nicename; 
  15. Ninja_Forms()->registered_notification_types[ $slug ]['classname'] = $classname; 
  16.