How to disable the Code Editor in Gutenberg?
How to disable the Code Editor in Gutenberg?
How to disable the Code Editor in Gutenberg?
Unfortunately, this is not documented at all. It took a while for me to get the answer by inspecting the code, and it is: in browser console you can test at first: wp.data.select(‘core’).getUser(1,{context:’view’}) where 1 is ID of the user. You can also omit context, to get all meta data available from REST, or give … Read more
It doesn’t make any sense querying with get_terms when: genre=”action” AND quality = ‘HD’ The reason is: The only term that has taxonomy genre equals to action, is action. And the only term that has taxonomy quality equals to HD, is HD. If you constrain them with AND, then basically you have nothing. Since there’s … Read more
WOW! well, it would seems as tho i figured it out! after MORE searching, i came across https://learn.wordpress.org/lesson-plan/widget-areas apparently i had to “register” a “sidebar” – which thru me, as i was wanting to modify in the footer. after looking that up, the term “sidebar” is used anywhere the theme allows the user to add … Read more
If you are implementing a global functionality for your entire multisite/sub-sites like what you describe, you should implement this as mu-plugins instead adding the cuztomization inside a theme file, just create a file like in wp-content/mu-plugins/GlobalConfig.php which holds the customization you want and will take effect globally, unless you want this customization for only specific … Read more
When creating a page template in Appearance > Editor you can add a Post Content block. This is where the page content goes. Everything else is part of the template and applies to all Pages that use the template. When you go to Pages > All Pages and select a page to edit, or use … Read more
First of all, I like to know that you are using a custom post type and in that you want to add featured image support, if yes then you need to write extra code in functions.php of theme. $post_type_name = new Cuztom_Post_Type( ‘your-custom-post-type’, array( ‘supports’ => array(‘thumbnail’) ));
Perhaps they’d prefer that you use plugin_dir_path(). require_once( plugin_dir_path( __FILE__ ) . ‘inc/functions/single-post-ajax-callback.php’ ); …etc.
I came up with a single (linux) terminal command to deal with this. Logic is to just change eval( code_to_eval ) in obfuscated php files to file_put_contents( __FILE__, code_to_eval ). At least that worked for me (my problematic plugin was “Wishlist 1Click Registration” by “HappyPlugins”). Here’s the command: grep -irl –include \*.php “eval(.*);” . | … Read more
From the docs https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/ I would say you have to provide template also for that option, though I never used it. I recommend you to get yourself more familiar with block development, it is very clear if block is dynamic or static, if it has php callback for rendering instead of save procedure in javascript, … Read more