facebook Page Publish 2

Use Add Link to Facebook instead of facebook page publish 2 plugin.It is quite simple plugin.It creates add link to facebook menu under Tools in wordpress admin menu. following link below:- http://wordpress.org/plugins/add-link-to-facebook/

WooCommerce Force Display of Base Country Order Addresses

Looking through the code it looks like this is intended functionality to reduce the clutter in the admin screen. Here’s a little snippet so you can override that functionality. add_filter( ‘woocommerce_formatted_address_force_country_display’, ‘__return_true’ ); This only works in the bleeding edge version of WooCommerce – it should be included in 2.0.14 Gist permalink – https://gist.github.com/BFTrick/6241267

after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()

prepare() takes at least 2 parameters. Most of your calls to prepare() are not needed. For example: $blogids = $wpdb->get_col($wpdb->prepare(“SELECT blog_id FROM $wpdb->blogs”)); In this code, if the call to $wpdb->prepare() were valid, it wouldn’t do anything. The function doesn’t do anything to the first parameter. It manipulates the values in the other parameters passed … Read more

Free shipping for certain items only – or get local pickup as option if item is set to virtual

Well I dug a little deeper and found that in the abstract WC_Product class, there is the needs_shipping() method: /** * Checks if a product needs shipping. * * @access public * @return bool */ public function needs_shipping() { return apply_filters( ‘woocommerce_product_needs_shipping’, $this->is_virtual() ? false : true, $this ); } and it is filterable, which … Read more

Insert Array in Plugin Database

You should pass data as an array, not a json encoded string. So changing these line would work. Just remove the following line – $formDATA = json_encode($formDATA); if you want to see the reference, prepare sql this way $sql = “INSERT INTO `”.$table_name .”` (`paid_arr`) VALUES ‘”.json_encode($formDATA).”‘”;