Export data as CSV in back end with proper HTTP headers
I wrote a plugin that displays all products in a woocommerce store in admin settings option, now I want to add a link to download the products as CSV file.
I wrote a plugin that displays all products in a woocommerce store in admin settings option, now I want to add a link to download the products as CSV file.
Firefox Portable those plugins won’t run themselves
I would like to enhance the Media Editor, after WordPress 3.5, on the gallery view.
I want to add a new select field on the right side and send the selected values to the gallery shortcode.
I’ve created a plugin, and of course being me, I wanted to go with a nice OO approach. Now what I’ve been doing is to create this class and then just below create an instance of this class:
I’m wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?
It’s a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of knowledge with WordPress/PHP. In my plugin, I am attempting to register jquery and the ui and apparently am breaking other parts of WordPress in the process. Can someone please tell me what I’m doing wrong and if they can provide a working solution, I will scrap all of my code:
I’m using the Wrox WordPress plugin development book as a primary reference for getting started with a new plugin and I understand all settings can be saved as 1 array but the book does’t give an example of this and all the stuff I’m finding on the web seems so different from one example to another. The second half of a post by Konstantin gets me close but I’d really like to see a more complete example with multiple fields.
WordPress itself, in the wp-content folder, includes an empty PHP file which looks like this.
I’m building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I don’t mean pages as in a WordPress page that you create yourself but rather existing admin section pages like ‘Your Profile’, ‘Users’, etc. Is there a wp function specifically for this task? I’ve been looking and I can only find the boolean function is_admin and action hooks but not a boolean function that just checks.
Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing.