// 在 enqueue_frontend_assets 方法中确保传递正确的参数 public function enqueue_frontend_assets() { // ... 原有代码 // 本地化脚本 - 更新参数 wp_localize_script('ps-frontend', 'ps_ajax', array( 'url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('ps_ajax_nonce'), 'ajax_url' => admin_url('admin-ajax.php'), 'plugin_url' => PS_PLUGIN_URL, 'version' => $version, 'debug' => true )); }
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-multi-currency domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/chaoenglish/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property WOOMULTI_CURRENCY_Frontend_Coupon::$settings is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woocommerce-multi-currency/frontend/coupon.php on line 11

Deprecated: Creation of dynamic property Sensei_Settings::$remaining_fields is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei-settings-api.php on line 46

Deprecated: Creation of dynamic property Sensei_PostTypes::$labels is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei-posttypes.php on line 65

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the sensei-lms domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/chaoenglish/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property Sensei_Lesson::$question_order is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei-lesson.php on line 51

Deprecated: Creation of dynamic property Sensei_Question::$question_types is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei-question.php on line 27

Deprecated: Return type of Sensei_Data_Port_Manager::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/data-port/class-sensei-data-port-manager.php on line 354

Deprecated: Return type of Sensei_Data_Port_Job::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/data-port/class-sensei-data-port-job.php on line 362

Deprecated: Creation of dynamic property Sensei_Main::$Sensei_WPML is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/class-sensei.php on line 456

Deprecated: Creation of dynamic property Sensei_Pro\Upsells::$assets is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/includes/class-upsells.php on line 34

Deprecated: Optional parameter $user_id declared before required parameter $product_id is implicitly treated as a required parameter in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/wc-paid-courses/includes/woocommerce-integrations/class-sensei-wc.php on line 2178

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/wc-paid-courses/includes/class-courses.php on line 819

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-subscriptions domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/chaoenglish/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/chaoenglish/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property Sensei_Content_Drip::$assets is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 141

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-memberships domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/chaoenglish/public_html/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property Sensei_Content_Drip::$settings is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 348

Deprecated: Creation of dynamic property Sensei_Content_Drip::$utils is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 349

Deprecated: Creation of dynamic property Scd_Ext_Access_Control::$message_format is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-scd-ext-access-control.php on line 48

Deprecated: Creation of dynamic property Sensei_Content_Drip::$access_control is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 350

Deprecated: Creation of dynamic property Scd_Ext_Lesson_Frontend::$message_format is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-scd-ext-lesson-frontend.php on line 50

Deprecated: Creation of dynamic property Sensei_Content_Drip::$lesson_frontend is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 351

Deprecated: Creation of dynamic property Sensei_Content_Drip::$lesson_admin is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 352

Deprecated: Creation of dynamic property Scd_Ext_Quiz_Frontend::$message_format is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-scd-ext-quiz-frontend.php on line 50

Deprecated: Creation of dynamic property Sensei_Content_Drip::$quiz_frontend is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 353

Deprecated: Creation of dynamic property Sensei_Content_Drip::$drip_email is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 354

Deprecated: Creation of dynamic property Sensei_Content_Drip::$manual_drip is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-pro/modules/content-drip/includes/class-sensei-content-drip.php on line 355

Deprecated: Creation of dynamic property VillaTheme_Support_Pro::$data is deprecated in /home/chaoenglish/public_html/wp-content/plugins/woocommerce-multi-currency/includes/support.php on line 17

Warning: Cannot modify header information - headers already sent by (output started at /home/chaoenglish/public_html/wp-content/plugins/product-selector/includes/class-product-filter.php:1) in /home/chaoenglish/public_html/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /home/chaoenglish/public_html/wp-content/plugins/product-selector/includes/class-product-filter.php:1) in /home/chaoenglish/public_html/wp-includes/pluggable.php on line 1453

Deprecated: Return type of Sensei_Enrolment_Provider_State_Store::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/enrolment/class-sensei-enrolment-provider-state-store.php on line 113

Deprecated: Return type of Sensei_Enrolment_Provider_Journal_Store::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/chaoenglish/public_html/wp-content/plugins/woothemes-sensei/plugins/sensei-lms/includes/enrolment/class-sensei-enrolment-provider-journal-store.php on line 109