osify
Forum Replies Created
-
No yet. Currently I use use embedded script from buy-me-a-coffee and use normal html widget to place that in.
Forum: Plugins
In reply to: [WooCommerce] Display SKU Underneath Title Areawork for me
add_action( 'woocommerce_before_shop_loop_item_title', 'shop_sku' );
function shop_sku(){
global $product;
echo '<div class="sku">Code: ' . $product->sku . '</div>';
}
Forum: Plugins
In reply to: [WangGuard] PHP Fatal error: Call to undefined function wp_get_current_user()Thanks for your helpful ??
Forum: Plugins
In reply to: [WangGuard] PHP Fatal error: Call to undefined function wp_get_current_user()Yes, you are right, I have also Multisite Plugin Manager. I will remove it if it’s working or not.
I have the same issue just now with the latest version of this plugin.
I used it on multisite as well but no this kind of issue.
Normally you need to connect to your wordpress.com account by each site (including subsite), you should click on “Learn more” and you will see “Connect to WordPress.com”.
Hope it helps.
Forum: Plugins
In reply to: WP MVC code generation failing. Shell arguement?I first got this issue as well when I execute:
./wpmvc generate plugin MyPluginIt was silently finish without any error, nor creating the folder structure.
Finally I found out following issue:
– I have run that on WordPress Multisite, WP-MVC is not supported for console running, so I switch to use normal WordPress
– I have setup two environment variables before running:
. export WPMVC_WORDPRESS_PATH=”My wordpress path”
. export WPMVC_PHP=”/install/wamp/bin/php/php5.2.5/php.exe”Then it solved when executed, I got successful as:
←[35;1m←[4mWelcome to WP MVC Console!←[0m←[0m
←[1m[Running Generate::plugin]←[0m
←[1m[Complete]←[0mNote: I run on Windows XP by using Cygwin (even with DOS) should work the same way.