How to prevent UNDO on guternberg block editor
How to prevent UNDO on guternberg block editor
How to prevent UNDO on guternberg block editor
WordPress post_where & posts_join not working only for custom post type
Best way to save custom css for an block
You can do this with a block attribute and useEffect() in your edit function: useEffect(() => { // If the ID is already set, we don’t need to do anything if (attributes.id) { return; } // The ID attribute isn’t set, so we’ll create it and set it now setAttributes({ id: 123, // This is … Read more
So I would take of on your html form the onsubmit()=…, once isnt needed and your javascript function should only have something like this. document.getElementById(“form_1”).style.display = “none”; or document.getElementById(“form_1”).style.visibility = “hidden”; this should do the job, if for some reason it does not, change the onclick from the input to the form tag. Your code … Read more
How to programmatically add a custom template that appears in Site Editor from a plugin?
Securing/Escaping Output of file content – reading via fread() in PHP
Ok, this is probably the easiest workaround I was able to find, but if someone has better idea, then feel free to post it here 😉 import { __experimentalUseInnerBlocksProps, useInnerBlocksProps, } from ‘@wordpress/block-editor’; if( typeof useInnerBlocksProps == ‘undefined’ ){ var compatibleUseInnerBlocksProps = __experimentalUseInnerBlocksProps; }else{ var compatibleUseInnerBlocksProps = useInnerBlocksProps; } so basically I can import both … Read more
PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
How to access noticeOperations from withNotices