Caldera_Forms_Admin_APSetup

Base class for adding auto-populate options to select fields.

Defined (1)

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

/classes/admin/apsetup.php  
  1. abstract class Caldera_Forms_Admin_APSetup implements Caldera_Forms_Admin_APSetupInterface { 
  2.  
  3. /** 
  4. * Caldera_Forms_Admin_APSetup constructor. 
  5. * @since 1.4.3 
  6. */ 
  7. public function __construct() { 
  8. $this->add_hooks(); 
  9.  
  10. /** 
  11. * Add hooks 
  12. * @since 1.4.3 
  13. */ 
  14. protected function add_hooks() { 
  15. add_action( 'caldera_forms_autopopulate_types', array( $this, 'add_type' ) ); 
  16. add_action( 'caldera_forms_autopopulate_type_config', array( $this, 'add_options' ) ); 
  17.  
  18. /** 
  19. * Remove hooks 
  20. * @since 1.4.3 
  21. */ 
  22. public function remove_hooks() { 
  23. remove_action( 'caldera_forms_autopopulate_types', array( $this, 'add_type' ) ); 
  24. remove_action( 'caldera_forms_autopopulate_type_config', array( $this, 'add_options' ) ); 
  25.  
  26.