code: 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' );
  				}
  			}
  		);
  	}
docs: Front initializer method.