Any plugin out there that uses WP’s internal image uploader?
The plugin Image Widget uses it. http://wordpress.org/extend/plugins/image-widget/
The plugin Image Widget uses it. http://wordpress.org/extend/plugins/image-widget/
To be frank, my customers and I have only had miserable experiences with all of the various alternatives. Had I found a suitable one myself, I wouldn’t be developing one in the background. 😛 (And no, the one I’m working on by no means ready yet.)
The get_themes function passes the available themes to the theme list table class and is hardcoded with a call to asort the array, with no filters available anywhere along the way that i can see. So in short, not possible at present due to an absence of hooks(at least as far as my observations go). … Read more
That is actually dead simple. Cookies are set by wp_set_comment_cookies() and this function is hooked into ‘set_comment_cookies’. Just remove the function from the action: <?php # -*- coding: utf-8 -*- /* Plugin Name: No Comment Cookies */ remove_action( ‘set_comment_cookies’, ‘wp_set_comment_cookies’ ); Download on GitHub.
First thing is the add rewrite rule function. You have – add_rewrite_rule(‘^wp-api/pugs/?([0-9]+)?/?’,’index.php?__wp-api=1&pugs=$matches[1]’,’top’); wp-api/pugs/?([0-9]+) this means, when you request <url>/wp-api/pugs/123, you will get a query variable pugs with parameter 123. $var = get_query_var(‘pugs’); // = 123 Now, you don’t really need pugs in the url as per you needs. So, just remove it this way. Also, … Read more
If the fonts are loaded from a plugin, a hook will have to be used to insert them, you can disable the hook, but you’ll need to know where it’s coming from. Mostly because you’ll need the handle of the script. There are quite a few different ways it could be done so I’ll try … Read more
At a first glance it makes sense, but… When exactly would that function be used? When user opens post editor, you can easily hook to that action and set the lock. But when would you remove it? After saving? No – user is still editing, so the lock should be on. It should be removed … Read more
A very helpful question, I think. There are two plugins, for the discussions let’s say: ToBeDeprecated Plugin, and ToBeUplifted Plugin There could be many ways, but these are the points that come to my mind first: Before the Upgrade Seemless Migration In the code of the ToBeUplifted plugin, you should ensure a seamless migration process … Read more
The error in question is likely because when you run register_block_type(), you didn’t set the block attributes or that it (which is an array in PHP) doesn’t have the attribute named content. So make sure the attributes are defined in both JavaScript (via registerBlockType()) and PHP (via the above-mentioned function), and that the schema is … Read more
There are two (2) steps. Add the WordPress.org username of the contributor you want to add to the “contributors” line in the header info of the Readme file, and that person will have SVN commit access to the plugin. Go to the plugin repository and log in with the main account Go to your plug-in … Read more