✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/elementor/modules/favorites//controller.php
<?php

namespace Elementor\Modules\Favorites;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Elementor\Data\V2\Base\Controller as Controller_Base;
use Elementor\Plugin;

class Controller extends Controller_Base {

	public function get_name() {
		return 'favorites';
	}

	public function create_item( $request ) {
		$module = $this->get_module();
		$type = $request->get_param( 'id' );
		$favorite = $request->get_param( 'favorite' );

		$module->update( $type, $favorite, $module::ACTION_MERGE );

		return $module->get( $type );
	}

	public function delete_item( $request ) {
		$module = $this->get_module();
		$type = $request->get_param( 'id' );
		$favorite = $request->get_param( 'favorite' );

		$module->update( $type, $favorite, $module::ACTION_DELETE );

		return $module->get( $type );
	}

	public function create_item_permissions_check( $request ) {
		return current_user_can( 'edit_posts' );
	}

	public function delete_item_permissions_check( $request ) {
		return $this->create_item_permissions_check( $request );
	}

	/**
	 * Get the favorites module instance.
	 *
	 * @return Module
	 */
	protected function get_module() {
		return Plugin::instance()->modules_manager->get_modules( 'favorites' );
	}

	public function register_endpoints() {
		$this->index_endpoint->register_item_route( \WP_REST_Server::CREATABLE, [
			'id_arg_type_regex' => '[\w]+',
			'id' => [
				'description' => 'Type of favorites.',
				'type' => 'string',
				'required' => true,
			],
			'favorite' => [
				'description' => 'The favorite slug to create.',
				'type' => 'string',
				'required' => true,
			],
		] );

		$this->index_endpoint->register_item_route( \WP_REST_Server::DELETABLE, [
			'id_arg_type_regex' => '[\w]+',
			'id' => [
				'description' => 'Type of favorites.',
				'type' => 'string',
				'required' => true,
			],
			'favorite' => [
				'description' => 'The favorite slug to delete.',
				'type' => 'string',
				'required' => true,
			],
		] );
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
types
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
controller.php
1.953 KB
23 Apr 2023 3.22 PM
builxejc / builxejc
0644
favorites-type.php
0.787 KB
23 Apr 2023 3.22 PM
builxejc / builxejc
0644
module.php
4.956 KB
21 Oct 2025 4.51 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF