HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/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();
	}

}