Astra_Minify::__construct()

Construct


Description


Source

File: classes/class-astra-minify.php

		public function __construct() {

			add_action( 'customize_preview_init', __CLASS__ . '::preview_init', 11 );
			add_action( 'customize_save_after', __CLASS__ . '::refresh_assets', 11 );
			add_action( 'astra_addon_activated', __CLASS__ . '::refresh_assets', 11 );
			add_action( 'astra_addon_deactivated', __CLASS__ . '::refresh_assets', 11 );
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );

			if ( version_compare( ASTRA_THEME_VERSION, '3.6.8', '>' ) ) {
				add_action( 'astra_get_js_files', array( $this, 'add_fronted_pro_script' ) );
			}
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.