Người dùng này không có chủ đề yêu thích nào.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã tạo
| Trạng thái |
Chủ đề
|
Người hỗ trợ | Ý kiến | Bài viết | Mới nhất |
|---|---|---|---|---|---|
|
Error 500 accessing Translation Management in CMS
Được bắt đầu bởi: alessandraB-3
trong: 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 months, 1 week trước | |
|
WPML chat support ticket by alessandraB-3 – 1648461798
Được bắt đầu bởi: alessandraB-3 trong: Chat Support |
|
1 | 2 |
3 years, 11 months trước
|