sses with the stored data. */ protected function populate() { $combined = $this->retrieve(); foreach ( $this->types as $key => $type ) { if ( isset( $combined[ $key ] ) ) { $type->merge( $combined[ $key ] ); } } } /** * Retrieve stored user favorites types. * * @return mixed|false */ protected function retrieve() { return get_user_option( static::OPTION_NAME ); } /** * Update all changes to user favorites type. * * @return int|bool */ protected function store() { return update_user_option( get_current_user_id(), static::OPTION_NAME, $this->combined() ); } /** * Throw action doesn't exist exception. * * @param string $action */ public function action_doesnt_exists( $action ) { throw new \InvalidArgumentException( sprintf( "Action '%s' to apply on favorites doesn't exists", $action ) ); } }
Fatal error: Uncaught Error: Class 'Elementor\Modules\Favorites\Module' not found in /home/sportuga/public_html/wp-content/plugins/elementor/core/modules-manager.php:53 Stack trace: #0 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(730): Elementor\Core\Modules_Manager->__construct() #1 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(647): Elementor\Plugin->init_components() #2 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #3 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/sportuga/public_html/wp-settings.php(695): do_action('init') #6 /home/sportuga/public_html/wp-config.php(102): require_once('/home/sportuga/...') #7 /home/sportuga/public_html/wp-load.php(50): require_once('/home/sportuga/...') #8 /home/sportuga/public_html/wp-blog-header.php(13): require_once('/home/sportuga/... in /home/sportuga/public_html/wp-content/plugins/elementor/core/modules-manager.php on line 53