src/controller/class-launcher.php
public function front() {

		add_action(
			'wp', function() {
				App::setCurrentID( 'EFG' );
				if ( App::main()->is_single() && ! is_preview() ) {
					$this->add_scripts( 'customRatingGrifus' );
					$this->add_styles();
				} elseif ( is_home() || is_category() || is_archive() || is_search() ) {
					$this->add_scripts( 'customRatingGrifusHome' );
				}
			}
		);
	}
public function front() {

		add_action(
			'wp', function() {
				App::setCurrentID( 'EFG' );
				if ( App::main()->is_single() && ! is_preview() ) {
					$this->add_scripts( 'customRatingGrifus' );
					$this->add_styles();
				} elseif ( is_home() || is_category() || is_archive() || is_search() ) {
					$this->add_scripts( 'customRatingGrifusHome' );
				}
			}
		);
	}
public function front ( ) { add_action ( 'wp' , function ( ) { App :: setCurrentID ( 'EFG' ) ; if ( App :: main ( ) -> is_single ( ) && ! is_preview ( ) ) { $ this -> add_scripts ( 'customRatingGrifus' ) ; $ this -> add_styles ( ) ; } elseif ( is_home ( ) || is_category ( ) || is_archive ( ) || is_search ( ) ) { $ this -> add_scripts ( 'customRatingGrifusHome' ) ; } } ) ; }
Front initializer method.
Front initializer method .