theme_name = $theme->Name;
$this->theme_version = $theme->Version;
/* Enqueue Styles & Scripts for Welcome Page */
add_action('enqueue_scripts', array($this, 'img_hover_styles_and_scripts'));
/* Hide Notice */
add_filter('img_hover_output', array($this, 'img_hover_notice_content'), 10);
/* Create a Welcome Page */
add_action('aspace_img_hover_output', array($this, 'aspace_img_hover_notice'));
add_action('aspace_theme_img_hover_after', array($this, 'aspace_theme_img_hover_name'));
add_action('aspace_theme_img_hover_version', array($this, 'aspace_theme_img_hover_version'));
}
public function aspace_theme_img_hover_name() {
$theme = wp_get_theme();
return $theme->name;
}
public function aspace_theme_img_hover_version() {
$theme = wp_get_theme();
return $theme->version;
}
/** Trigger Welcome Message Notification */
public function aspace_img_hover_notice() {
add_action('img_hover', array($this, 'img_hover_notice_content'));
}
/** Welcome Message Notification */
public function img_hover_notice_content() { ?>