403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/etd/wordpressbackupfinalWORKING/wp-content/plugins/select-core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/etd/wordpressbackupfinalWORKING/wp-content/plugins/select-core/main.php
<?php
/*
Plugin Name: Select Core
Description: Plugin that adds all post types needed by our theme
Author: Select Themes
Version: 1.1
*/

require_once 'load.php';

add_action( 'after_setup_theme', array( QodeCore\CPT\PostTypesRegister::getInstance(), 'register' ) );

if ( ! function_exists( 'qode_core_activation' ) ) {
	/**
	 * Triggers when plugin is activated. It calls flush_rewrite_rules
	 * and defines cityrama_qodef_core_on_activate action
	 */
	function qode_core_activation() {
		do_action( 'cityrama_qodef_core_on_activate' );

		QodeCore\CPT\PostTypesRegister::getInstance()->register();
		flush_rewrite_rules();
	}

	register_activation_hook( __FILE__, 'qode_core_activation' );
}

if ( ! function_exists( 'qode_core_text_domain' ) ) {
	/**
	 * Loads plugin text domain so it can be used in translation
	 */
	function qode_core_text_domain() {
		load_plugin_textdomain( 'select-core', false, QODE_CORE_REL_PATH . '/languages' );
	}

	add_action( 'plugins_loaded', 'qode_core_text_domain' );
}

if ( ! function_exists( 'qodef_core_version_class' ) ) {
	/**
	 * Adds plugins version class to body
	 *
	 * @param $classes
	 *
	 * @return array
	 */
	function qodef_core_version_class( $classes ) {
		$classes[] = 'qode-core-' . QODE_CORE_VERSION;

		return $classes;
	}

	add_filter( 'body_class', 'qodef_core_version_class' );
}

if ( ! function_exists( 'qodef_core_theme_installed' ) ) {
	/**
	 * Checks whether theme is installed or not
	 * @return bool
	 */
	function qodef_core_theme_installed() {
		return defined( 'QODE_ROOT' );
	}
}

if ( ! function_exists( 'qodef_core_is_woocommerce_installed' ) ) {
	/**
	 * Function that checks if woocommerce is installed
	 * @return bool
	 */
	function qodef_core_is_woocommerce_installed() {
		return function_exists( 'is_woocommerce' );
	}
}

if ( ! function_exists( 'qodef_core_is_woocommerce_integration_installed' ) ) {
	//is Select Woocommerce Integration installed?
	function qodef_core_is_woocommerce_integration_installed() {
		return defined( 'QODE_WOOCOMMERCE_CHECKOUT_INTEGRATION' );
	}
}

if ( ! function_exists( 'qodef_core_is_revolution_slider_installed' ) ) {
	function qodef_core_is_revolution_slider_installed() {
		return class_exists( 'RevSliderFront' );
	}
}

if ( ! function_exists( 'qode_core_theme_menu' ) ) {
	/**
	 * Function that generates admin menu for options page.
	 * It generates one admin page per options page.
	 */
	function qode_core_theme_menu() {
		if ( qodef_core_theme_installed() ) {

			global $cityrama_qodef_Framework;
			cityrama_qodef_init_theme_options();

			$page_hook_suffix = add_menu_page(
				'Select Options',      // The value used to populate the browser's title bar when the menu page is active
				'Select Options',      // The text of the menu in the administrator's sidebar
				'administrator',                  // What roles are able to access the menu
				'cityrama_qodef_theme_menu',                // The ID used to bind submenu items to this menu
				array(
					$cityrama_qodef_Framework->getSkin(),
					'renderOptions'
				), // The callback function used to render this menu
				$cityrama_qodef_Framework->getSkin()->getSkinURI() . '/assets/img/admin-logo-icon.png',             // Icon For menu Item
				100           // Position
			);

			foreach ( $cityrama_qodef_Framework->qodeOptions->adminPages as $key => $value ) {
				$slug = "";

				if ( ! empty( $value->slug ) ) {
					$slug = "_tab" . $value->slug;
				}

				$subpage_hook_suffix = add_submenu_page(
					'cityrama_qodef_theme_menu',
					'Select Options - ' . $value->title,                   // The value used to populate the browser's title bar when the menu page is active
					$value->title,                   // The text of the menu in the administrator's sidebar
					'administrator',                  // What roles are able to access the menu
					'cityrama_qodef_theme_menu' . $slug,                // The ID used to bind submenu items to this menu
					array( $cityrama_qodef_Framework->getSkin(), 'renderOptions' )
				);

				add_action( 'admin_print_scripts-' . $subpage_hook_suffix, 'cityrama_qodef_enqueue_admin_scripts' );
				add_action( 'admin_print_styles-' . $subpage_hook_suffix, 'cityrama_qodef_enqueue_admin_styles' );
			};

			add_action( 'admin_print_scripts-' . $page_hook_suffix, 'cityrama_qodef_enqueue_admin_scripts' );
			add_action( 'admin_print_styles-' . $page_hook_suffix, 'cityrama_qodef_enqueue_admin_styles' );
		}
	}

	add_action( 'admin_menu', 'qode_core_theme_menu' );
}
if ( ! function_exists( 'qode_core_theme_menu_backup_options' ) ) {
	/**
	 * Function that generates admin menu for options page.
	 * It generates one admin page per options page.
	 */
	function qode_core_theme_menu_backup_options() {
		if ( qodef_core_theme_installed() ) {
			global $cityrama_qodef_Framework;

			$slug = "_backup_options";
			$page_hook_suffix = add_submenu_page(
				'cityrama_qodef_theme_menu',
				'Select Options - Backup Options',                   // The value used to populate the browser's title bar when the menu page is active
				'Backup Options',                   // The text of the menu in the administrator's sidebar
				'administrator',                  // What roles are able to access the menu
				'cityrama_qodef_theme_menu' . $slug,                // The ID used to bind submenu items to this menu
				array( $cityrama_qodef_Framework->getSkin(), 'renderBackupOptions' )
			);

			add_action( 'admin_print_scripts-' . $page_hook_suffix, 'cityrama_qodef_enqueue_admin_scripts' );
			add_action( 'admin_print_styles-' . $page_hook_suffix, 'cityrama_qodef_enqueue_admin_styles' );
		}
	}

	add_action( 'admin_menu', 'qode_core_theme_menu_backup_options' );
}

if ( ! function_exists( 'qode_core_theme_setup' ) ) {

	function qode_core_theme_setup() {

		add_filter( 'widget_text', 'do_shortcode' );
		remove_filter( 'widget_text_content', 'wpautop' );

	}

	add_action( 'plugins_loaded', 'qode_core_theme_setup' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit