ACFFieldDateTimePickerPlugin

The Advanced Custom Fields: Date and Time Picker ACFFieldDateTimePickerPlugin class.

Defined (1)

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

/acf-date-time-picker.php  
  1. class ACFFieldDateTimePickerPlugin { 
  2. /** 
  3. * Construct 
  4. * @description: 
  5. * @since: 3.6 
  6. * @created: 1/04/13 
  7. */ 
  8. function __construct() { 
  9.  
  10. load_plugin_textdomain( 'acf-field-date-time-picker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
  11. // version 4+ 
  12. add_action( 'acf/register_fields', array( $this, 'register_fields' ) ); 
  13. // version 3- 
  14. add_action( 'init', array( $this, 'init' ) ); 
  15.  
  16. /** 
  17. * Init 
  18. * @description: 
  19. * @since: 3.6 
  20. * @created: 1/04/13 
  21. */ 
  22. function init() { 
  23. if ( function_exists( 'register_field' ) ) { 
  24. register_field( 'acf_field_date_time_picker', dirname( __File__ ) . '/date-time-picker-v3.php' ); 
  25.  
  26. /** 
  27. * register_fields 
  28. * @description: 
  29. * @since: 3.6 
  30. * @created: 1/04/13 
  31. */ 
  32. function register_fields() { 
  33. require_once( 'date-time-picker-v4.php' );