Exemple #1
0
 /**
  * Primary class constructor.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     // Get base instance
     $this->base = Soliloquy_Featured_Content::get_instance();
     // Actions and filters
     add_action('save_post', array($this, 'flush_global_caches'), 999);
     add_action('pre_post_update', array($this, 'flush_global_caches'), 999);
     add_action('soliloquy_flush_caches', array($this, 'flush_caches'), 10, 2);
 }
Exemple #2
0
 /**
  * Primary class constructor.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     // Get base instance
     $this->base = Soliloquy_Featured_Content::get_instance();
     // Actions and filters
     add_filter('soliloquy_output_classes', array($this, 'output_classes'), 10, 2);
     add_filter('soliloquy_pre_data', array($this, 'pre_data'), 10, 2);
     // Dynamic Addon Support
     add_filter('soliloquy_dynamic_get_dynamic_slider_types', array($this, 'register_dynamic_slider_types'));
     add_filter('soliloquy_dynamic_queried_data', array($this, 'change_slider_type'), 10, 3);
 }
Exemple #3
0
 /**
  * Primary class constructor.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     // Get base instance
     $this->base = Soliloquy_Featured_Content::get_instance();
     // Actions and filters
     add_action('wp_loaded', array($this, 'register_publish_hooks'));
     add_action('soliloquy_metabox_styles', array($this, 'styles'));
     add_action('soliloquy_metabox_scripts', array($this, 'scripts'));
     add_filter('soliloquy_defaults', array($this, 'defaults'), 10, 2);
     add_filter('soliloquy_slider_types', array($this, 'types'));
     add_action('soliloquy_display_fc', array($this, 'settings_screen'));
     add_filter('soliloquy_save_settings', array($this, 'save'), 10, 2);
 }
 /**
  * Returns the singleton instance of the class.
  *
  * @since 1.0.0
  *
  * @return object The Soliloquy object.
  */
 public static function get_instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Soliloquy_Featured_Content) {
         self::$instance = new Soliloquy_Featured_Content();
     }
     return self::$instance;
 }