Using @wordpress/scripts 28.x with WordPress
Using @wordpress/scripts 28.x with WordPress <6.5
Using @wordpress/scripts 28.x with WordPress <6.5
I was bitten by this as well, and it caused me much frustration. I had exactly the same nested block duplication problem that you described above. I was able to solve this issue by specifying an apiVersion for my custom block. E.g.: registerBlockType(“custom-cafe-theme/custom-column”,{ apiVersion: 2, // or 3 title: “Custom Column”, attributes: { imgID: { … Read more
I didn’t declare the viewStyle for frontend and thus the css wasn’t being enqueued. { “viewStyle”: [ “file:./view.css”, “example-view-style” ] } build/view.css had all the needed css for swiper – it just wasn’t being declared with viewStyle https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-style . view.css: /*!*******************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/swiper/swiper-bundle.css ***! \*******************************************************************************************************************************************************************************************/ /** * Swiper 11.0.7 * Most modern mobile touch … Read more
Block Editor: Filter getSaveElement and innerBlocks
I would encourage against this, but I understand what you’re trying to do and do something similar myself. How I do it I build themes that depend on plugins, plugins that depend on plugins, and plugins that depend on plugins that depend on other plugins. If I’m controlling both sides of the development, I do … Read more
Extend backbone for add new custom Rest Api
I think it’s late for the party but there is an action is core/editor package of block editor called isSavingPost. Haven’t used it but I think it’s worth giving a try. https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/#issavingpost
403 forbidden error in the admin panel as well as on the admin-ajax.php file
WordPress Cron Job not importing products
Custom plug-in issues