diff --git a/Settings.php b/Settings.php index 1eb45e3..98eac75 100644 --- a/Settings.php +++ b/Settings.php @@ -27,10 +27,14 @@ class Settings { */ public function __construct() { add_action( 'cmb2_render_slider', array( $this, 'render_slider_field' ), 10, 5 ); + add_action( 'init', array( $this, 'init' ) ); // we need this objects to declare there controller right now. $imagify_partner = new Imagify_Partner( 'heartbeat-control' ); $imagify_partner->init(); + } + + public function init() { $this->plugins_block = array( 'rocket-lazy-load' => new Plugin_Card_Helper( array(