How to improve WP-Rest atrocious response time?
How to improve WP-Rest atrocious response time?
How to improve WP-Rest atrocious response time?
All sorted. My theme actually had a section for custom javascript in the theme options. I added the code there and used the enqueue for the bootstrap – all working fine now.
Solution: add an action on the tag vc_edit_form_fields_after_render. add_action( ‘vc_edit_form_fields_after_render’, function() { echo ‘<script src=”‘ . AN_URL . ‘test.js”></script>’; // Or something other }, 9 ); In the functions.php or equivalent. (Indeed, the tag vc_edit_form_fields_after_render is used by do_action( ‘vc_edit_form_fields_after_render’ ) which is located in js_composer\include\classes\editors\class-vc-edit-form-fields.php . So what you type in your add_action callable … Read more
1- First you have to make a child theme of your current theme. 2- Then, in your child theme create a functions.php file 3- Create a js folder and put fitty.min.js inside it and create a child.js file also inside this js folder 4- In functions.php of your child theme add the following : <?php … Read more
WordPress Gutenberg Ajax request
Javascript Injection on my WordPress Site
Why doesn’t my JS script load?
Custom block update rendering when reused
Is there an option to execute javascript file only on plugin deactivation
Thanks to Jacob Peattie, I was able to solve this issue. You have to include a nonce from the WordPress Javascript API in your REST API requests if you wish to use information about the current user. From the WordPress documentation: If no nonce is provided the API will set the current user to 0, … Read more