The solution was simpler than expected. I just had to add the following to my store file.
// Check if store already exists
if (!select(STORE_NAME)) {
register(store);
}
Related Posts:
- Plugin that saves form data
- Codex Version Focus on Production or Nightly?
- how to invoke wordpress API from other existing PHP system
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- Make a plugin page out of influence of the theme’s style
- How to cancel update messages from a changed plugin
- How to get the post excerpt using post object?
- jquery & ajax sending data to php
- 400 Bad Request, in wordpress theme development, wp_ajax
- Fatal error: Uncaught Error: Call to undefined function convert_to_screen()
- How to import the css in the plugin admin area?
- how to get the post id in plugin
- What’s the impact on WordPress’ performance regarding the amount of classes/files in a plugin?
- Using add_sub_menu to put into Appearance Section
- Multiple array for post_content on plugin activation
- Using AND and bracket grouping in SQL not working
- Taxonomy archive page listing terms instead of posts
- How to call code when adding WooCommerce menu items via woocommerce_account_menu_items
- jquery in wordpress plugin with depdendency
- Check if the current user is author of first comment
- Replace first occurence of a word with link [closed]
- Converting core modification to a plugin
- How do I force a download in the admin area?
- add_action wp_ajax_ not loading in plugin file WP Network
- Plugin creation, restricting access to specific roles
- wordpress automatic update does not run
- How to avoid conflict of plugin style and theme style?
- Ajax +wordpress onClick link redirect to new page and create html content
- Adding filter to the title without affecting the menu title
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Is it possible for two WordPress plugins to share the same code base?
- Script to replace default blogroll with links to my social media URLs
- How to show multiple instances of the WP125 Widget?
- How can the_excerpt (or equivalent) be called on a category description?
- Plugin Creation: Overriding upload_max_size and post_max_size
- Configuring Xdebug with docker compose
- wp.media libary pdf type
- Add multiple checkboxes as single field to Custom Shipping Method Settings Page
- How to call a function from a shortcode function in an oop plugin
- How to access index file in Block Themes?
- Posts form with AJAX request – Plugin development
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- How to create a custom post-new.php page for plugin , no wp menu
- How to create a custom WordPress page with my plugin?
- register_meta not showing custom post type metabox data in rest api
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Where to add functions and code snippets in wordpress
- How to re-render inspector controls?
- Save meta box data from selected dropdown list in bbpress reply form
- Sanitize WordPress Array Input?
- Events Manager: Create custom Placeholder for use in Email notification
- WC REST API Error Handling
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Get the current post/page URL with plain permalinks
- Using the same class across multiple functions
- How to remove the WooCommerce Product->Category thumbnail from admin [closed]
- ajax multiple Values
- Change Label of custom post type
- woocommerce add a new bulk action in the bulk actions dropdown in the orders list
- Creating a virtual page without exit
- Plugin Development – Call to undefined function comment_exists()
- Replace “content-area” of themes 404 page with plugin?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- Ajax Response Error | just getting error as the response
- WordPress doesn’t create table on plugin activation
- Create Customization panel for Plugins not for theme
- admin-ajax.php returns “No Script Kiddies!” sometimes
- How is construct function working even when variable is assigned null value?
- Widget won’t be activated
- Building WordPress Themes With Bootstrap with Adi Purdila → TutsPlus
- Allow user to change homepage
- Custom signature appears twice on page
- Plugin outputs content of posts unbidden!
- Need to change buddypress profile url by add_rewrite_rule
- wp_mail links are dead
- List Available Templates for Current Theme in a Plugin
- Generate activation url
- Adding Third Post Box Column: postbox-container-3
- Use different archive template for plugin
- Get custom wp_query search results to appear on search.php
- Is it safe to use PUT and DELETE requests
- WooCommerce custom payment gateway
- Client Profiles
- Multi-part form and wp_redirect()
- Saving multiple fields as array
- Sharing changes to a post (preview changes) with another user
- Serialized Data
- Update custom settings field in plugin
- URL rewrite parameter lost (add_rewrite_rule)
- PHPUnit Ajax Serialization of ‘Closure’ is not allowed
- Settings API not Saving to Database or Display
- Error using @wordpress/create-block to create multiple blocks on Windows
- Find Any Theme’s page.php File
- WP Job Manager – Show recent jobs as cards
- Admin Menu for New Post
- Generating Multiple Divi Pages from Database
- Is it smart to require_once wp-admin/includes/plugin.php when you need only one function from it
- multiple record insert creating many duplicate records
- wp_verify_nonce is always false even when the nonces are identical
- WordPress – Custom permalinks for advanced custom fields (ACF) using post type taxonomy