Redirection Plugin: Redirect all URLs with a regular expression
I modified it to redirect to a different URL but maintain the requested page: Source: /(.*) Target: http://mysite.com/$1
I modified it to redirect to a different URL but maintain the requested page: Source: /(.*) Target: http://mysite.com/$1
You can present the shipping costs per item in WooCommerce 2.x. Since you have set the prices as fixed and per item you can show them in the product description by simply writing them into the product description, or you can access the shipping class for the item (it’s a taxonomy) “product_shipping_class” that can be … Read more
If you’re following the rules (you never want to start out by breaking them), then any WordPress plug-in you write and submit to the repository must be licensed as GPLv2. There was a huge storm of discussion over this last year because the example readme file mistakenly said “GPL, version 2 or any later version” … Read more
From what you write, it looks to me that you accidentially copied/tagged the whole /trunk directory in your SVN while tagging/branching. As the wordpress plugin directory just grabs the full directory that got tagged, the zip package was invalidated. You can recover from that. I once made the same mistake. Just do a full checkout … Read more
It saves the data in: wp_options Row: option_name active_plugins
Ok, Eugene’s Answer works in the case of a plugin that doesn’t deals with custom capabilities. http://codex.wordpress.org/Roles_and_Capabilities The WordPress Plugin API allows Roles and Capabilities to be added, removed and changed. Since Plugins might change Roles and Capabilities, just the default ones are addressed in this article. So, if his code works without checking for … Read more
I have had this problem before: shortcodes shouldn’t display any content (using print or echo), instead return the content to be outputted. If it’s too much trouble converting all of your output statements, or you need to use a function that will always display the output, you can use output buffering. A buffer will ‘catch’ … Read more
I discover this message “Sorry, you are not allowed to access this page” mostly occur when various WordPress sites are in the same phpMyAdmin – all bearing the same table prefix, irrespective of the database name. I can’t tell how many WordPress sites are expected to be in the same phpMyAdmin with the same table … Read more
The product title is added to the woocommerce_single_product_summary hook at priority 5, so you’ll want to add to the same hook with a lower (earlier) priority. You’d add this to your theme’s functions.php file. I presume when you say “category” you mean the WooCommerce product category, so this should return the first one and print … Read more
The WordPress enqueue system should prevent the inclusion of the same script multiple times, and does when I test it. For example, the following enqueues a Core script and echos a counter. If I put this shortcode into a post 4 times, I get “0123” but the media script only loads one time. The same … Read more