Skip to content
Snippets Groups Projects
Select Git revision
  • 573bfb703ee914e0fad2178799fcb0f0834392a2
  • master default protected
  • devel
  • feature/add-escaping-to-templates
  • feature/add-priority-sorting
  • 3.3.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.4.12
  • 2.4.11
  • 2.4.10
  • 2.4.9
  • 2.4.8
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.2
  • 2.3.1
  • 2.3
25 results

TimepickerField.php

Blame
  • CustomOrdersTableCompatibility.php 718 B
    <?php
    
    namespace WPDesk\Init\Extension\CommonBinding;
    
    use WPDesk\Init\Binding\Hookable;
    use WPDesk\Init\Plugin\Plugin;
    
    class CustomOrdersTableCompatibility implements Hookable {
    
    	/** @var Plugin */
    	private $plugin;
    
    	public function __construct( Plugin $plugin ) {
    		$this->plugin = $plugin;
    	}
    
    	public function hooks(): void {
    		add_action('before_woocommerce_init', $this);
    	}
    
    	public function __invoke(): void {
    		$features_util_class = '\\' . 'Automattic' . '\\' . 'WooCommerce' . '\\' . 'Utilities' . '\\' . 'FeaturesUtil';
    		if ( class_exists( $features_util_class ) ) {
    			$features_util_class::declare_compatibility(
    				'custom_order_tables',
    				$this->plugin->get_basename(),
    				true
    			);
    		}
    
    	}
    }