extending a core block doesn’t work inside the editor
extending a core block doesn’t work inside the editor
extending a core block doesn’t work inside the editor
There are 4 problems a small one, a security problem, a misunderstanding, and a big problem. The Small Problem Because you used [] notation in the name you’ve indicated that there are multiple category_meta_ values: category_meta_[<?php echo $cat->term_id ?>] Which means $_POST[‘category_meta_’] will always be an array. It would be much easier to append the … Read more
it didn’t work for you because hook admin_head is designed to add <link> tags inside <head> section. So even if you will render something there it won’t be visible, because it is outside <body>. If you want to render something after admin head bar, you should use wp_after_admin_bar_render hook: https://developer.wordpress.org/reference/hooks/wp_after_admin_bar_render/ To determine if you are … Read more
How to create a “Most Popular” & “Latest” TAB in WordPress
How to replace content of a block in and re-render on change?
Updates are very basic and simply check the version number. Anybody on 2.x.x of your plugin will not see an update available because it the latest version will appear to be an older version. How the plugin was originally installed has no impact on this behaviour.
What’s wrong in the WordPress Meta Box Generator code?
the content_save_pre filter. It checks the post type of the current post and ensures that the content field is not empty. If the content field is empty, the function calls wp_die() to display an error message and stop the post from being saved. Note: Make sure to replace “custom_post_type” with the actual name of your … Read more
Proposed solution – a new plugin A new plugin built around the blocks and possibilities of the block editor. Having translations done within the FSE / Block Editor. The description below will focus on the translations of the Block items, because solving non-block based items is probably really easy since all multilanguage plugins already do … Read more
You code is almost certainly loading those files and adding the notice, but you’ve misunderstood how PHP works so they’re not happening when you expect them to happen. You need to keep two things in mind with PHP: Admin notices and require_once are not persistent across multiple requests. If you want to load a file … Read more