ليس لدى هذا المستخدم أي مواضيع مفضلة.
مواضيع المنتدى المفضلة
مواضيع المنتدى التي تم إنشاؤها
| الحالة |
الموضوع
|
داعم | الأصوات | المشاركات | الحداثة |
|---|---|---|---|---|---|
|
Error 500 accessing Translation Management in CMS
بدأه: alessandraB-3
في: English Support
Problem: PostTypeDto::__construct() with Visual Composer PRO plugin, this might be due to the plugin registering a custom post type without proper labels, causing a conflict with WPML. add_filter( 'wpml_post_type_dto_filter', function ( $postTypeObject ) {<br /> if ( is_object( $postTypeObject ) ) {<br /> $default = $postTypeObject->name ?? '';<br /> if ( ! isset( $postTypeObject->labels ) || ! is_object( $postTypeObject->labels ) ) {<br /> $postTypeObject->labels = new stdClass();<br /> }<br /> if ( empty( $postTypeObject->name ) ) {<br /> $postTypeObject->name = $default;<br /> }<br /> if ( empty( $postTypeObject->labels->name ) ) {<br /> $postTypeObject->labels->name = $default;<br /> }<br /> if ( empty( $postTypeObject->labels->singular_name ) ) {<br /> $postTypeObject->labels->singular_name = $default;<br /> }<br /> }<br /> return $postTypeObject;<br />} );2. Alternatively, manually edit the plugin file at /wp-content/uploads/visualcomposer-assets/addons/themeEditor/themeEditor/PostTypeController.php to ensure proper post type registration. |
|
0 | 7 | قبل 7 أشهر | |
|
WPML chat support ticket by alessandraB-3 – 1648461798
بدأه: alessandraB-3 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات، 11 شهر
|