How can I find plugins’ slug?
The string used in WordPress to identify the plugin is: plugin_basename($file); … where $file is a file with the plugin headers. So if you are in your plugin, get the slug with: $slug = plugin_basename( __FILE__ );
The string used in WordPress to identify the plugin is: plugin_basename($file); … where $file is a file with the plugin headers. So if you are in your plugin, get the slug with: $slug = plugin_basename( __FILE__ );
Alex King Website WordPress.org Profile Mark Jaquith Website WordPress Profiles Otto Website WordPress.org Profile Stephen Rider Blog Google Code (Strider Core) WordPress.org Profile
There’s two ways you can go about this, but both involve creating a function that does pretty much the same as the existing gallery shortcode function… You can either.. Hook onto post_gallery and manipulate the incoming data(you can use the gallery shortcode function as a base for the filter if necessary) Unregister the gallery shortcode … Read more
You are correct, WordPress checks for updates to core and plugins every 12 hours, but a better way to word it would be: it checks updates if last update was more than 12 hours ago. The 12 hour setting is hard codded in wp-includes/update.php The last updated dates are stored in wp_options table and the … Read more
I’m embarrassed to say that I am a bit clueless on the procedure used to update a plugin via tortoise svn even though my plugin has been on the repository for years and had over 300,000 downloads! Don’t be. SVN can be tricky for a lot of people … so let’s go through things step-by-step … Read more
Because I had cut and pasted define(’FS_METHOD’,’direct’); from the web, the incorrect quote characters were pasted into the file. should be define(‘FS_METHOD’, ‘direct’); The incorrect quote character also changed the encoding of the file somehow. If anyone has deeper knowledge of this issue please let me know in the comments.
luckily woocommerce has many hooks, this removes prices and buttons: remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’ ); remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10 ); remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 ); remove_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_price’, 10 ); you can dig into content-product.php and content-single-product.php if you need to remove more stuff. I can imagine there’s more than just the prices/buttons you want to … Read more
Ah I just had this problem myself! And while _embed is great, in my experience it is very slow, and the point of JSON is to be fast 😀 I have the following code in a plugin (used for adding custom post types), but I imagine you could put it in your theme’s function.php file. … Read more
I usually do this when that happens (only locally, not for production) : chown -R nobody:nobody /path/to/wordpress
##Plugin Necessity## What the necessity of plugins really boils down to is the question, “Am I satisfied that WordPress’s core functionality is all that I need?“ If all you want is a simple blog with some categories and a number of static pages you’re set. But if you want to start integrating interactive maps, calenders … Read more