How to resolve Multisite Speed issues
How to resolve Multisite Speed issues
How to resolve Multisite Speed issues
Issue with Ajax filter categories and Javascript
GET admin-ajax.php returning 400 bad request error
I did not support this because of the difficulty of implementation. However, Gutenberg is made with ReactJS, and a slot called PluginPostStatusInfo is provided, so it seems possible to inject your own React elements by using this slot. https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/slotfills/plugin-post-status-info.md
Ajax More Load More Button Not Working
Modify Gutenberg blocks quick inserter defaults
Is possible to open directly the core WP image editor on a modal?
You could consider running actions.getPosts on mount via data-wp-init like: <div … data-wp-init=”actions.getPosts”> As per the documentation: This directive runs a callback only when the node is created. You could also consider server-rendering the initial set of posts, like: <div data-wp-watch=”callbacks.renderContent”> <?php $query = new WP_Query( array( … ) ); ?> <?php while( $query->have_posts() ) … Read more
The most direct answer to your question as it stands is “yes” – there are many ways to acquire data from WordPress without embedding it in the page’s markup or an inline <script> generated via wp_add_inline_script()/wp_localize_script(). A couple of options would be to have your JavaScript make a web request to the REST API (either … Read more
The issue you’re encountering is related to the execution order in WordPress. Global variables in WordPress are request-specific and are not preserved across different requests or different parts of a request unless they are included within the same scope. The wp_enqueue_scripts action runs before the template file is executed, hence your $product_filter_data array is still … Read more