This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Field group updates not being respected in rendering page template even after JSON sync
Started by: vivekP in: English Support |
3 | 7 | 1 month, 3 weeks ago | ||
After copydown from Live to Test, “test” subdomains don’t validate properly
Started by: vivekP in: English Support |
2 | 3 | 2 months, 1 week ago | ||
Major performance regressions rom 4.6.3 to 4.6.11 in REST API response times
Started by: vivekP
in: English Support
Problem: wp-content/plugins/acfml/classes/Strings/FieldHooks.php , modify the add_hooks method to check for REST requests before executing hooks. Here is the suggested change: public function add_hooks() { if (!strpos($_SERVER['REQUEST_URI'], 'wp-json')) { add_action('acf/update_field_group', [$this, 'registerGroupAndFieldsAndLayouts']); add_filter('acf/load_field_group', Fns::withoutRecursion(Fns::identity(), [$this, 'translateGroup'])); add_filter('acf/load_field', [$this, 'translateField']); add_action('acf/delete_field_group', [$this, 'deleteFieldGroupPackage']); } } Important: Please ensure to make a full site backup (files and database) before implementing this workaround. Update! We are soon to release a new version of ACF Multilingual, version 2.1.4. The update will overwrite the fix suggested in this ticket. (In the file: wp-content/plugins/acfml/classes/Strings/FieldHooks.php). Our developer suggests a better workaround that will work with version 2.1.4. Add the following function. add_action( 'rest_api_init', function() { if ( wp_is_serving_rest_request() ) { add_filter( 'acfml_should_translate_acf_entity', '__return_false' ); } }, 5 ); It is important to note that the above snippet will only work with ACF Multilingual version 2.1.4 It's recommended that the snippet be added as a Must-Use plugin. Alternatively, you can add the function to the functions.php file of your theme. **** Important! Please make a full site backup (files and DB) before you proceed with those steps**** Note: wp_is_serving_rest_request introduced in WP 6.5 relies on the REST_REQUEST global. But keep in mind that standard HTTP requests could also call REST endpoints internally (to pre-load REST request results with the normal request). The client might want to disable the ACF entity translation on a wider scope. If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum. |
2 | 16 | 2 months, 4 weeks ago | ||
ACF Multilingual plugin breaks some GraphQL queries after latest update
Started by: vivekP in: English Support |
2 | 12 | 1 year, 5 months ago | ||
Database error (not in admin language)
Started by: vivekP in: English Support |
2 | 2 | 2 years, 1 month ago | ||
Translation management jobs list is empty
Started by: vivekP in: English Support |
2 | 2 | 2 years, 3 months ago | ||
Get POEdit-edited PO/MO files for a domain to be re-imported (not as Str Trans)
Started by: vivekP in: English Support |
2 | 9 | 3 years, 4 months ago | ||
Duplicate Content page shows "Needs Update" icon on the Translation Management p
Started by: vivekP in: English Support |
2 | 7 | 4 years, 3 months ago |