HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/csm/public_html/wp-content/plugins/wordpress-popup/inc/class-hustle-tutorials-page.php
<?php
/**
 * File for Hustle_Admin_Page_Abstract class.
 *
 * @package Hustle
 * @since 4.4.6
 */

/**
 * Class Hustle_Tutorials_Page
 *
 * @since 4.4.6
 */
class Hustle_Tutorials_Page extends Hustle_Admin_Page_Abstract {

	/**
	 * Initiates the page's properties
	 *
	 * @since 4.4.6
	 */
	public function init() {

		$this->page = 'hustle_tutorials';

		$this->page_title = __( 'Tutorials', 'hustle' );

		$this->page_menu_title = __( 'Tutorials', 'hustle' );

		$this->page_capability = 'hustle_menu';

		$this->page_template_path = 'admin/tutorials';

		add_action( 'wp_ajax_hustle_hide_tutorials', array( $this, 'hide_tutorials' ) );
	}

	/**
	 * Hide tutorials.
	 */
	public function hide_tutorials() {
		check_ajax_referer( 'hustle_dismiss_notification' );

		update_option( 'hustle-hide_tutorials', true );

		wp_send_json_success();
	}


	/**
	 * Get the arguments used when rendering the main page.
	 *
	 * @since 4.4.6
	 * @return array
	 */
	public function get_page_template_args() {
		return array();
	}

}