Javascript Loading Effect to URLs

I added the Javascript file with the following code. So if anyone is looking for this solution should use the below code in functions. I don’t know who was so jobless to vote this question down but I am trying to fix my mistake of posting question here on stackexchange by answering my own question. … Read more

WordPress White Screen Error

What causes this? It may be a line ending problem. In *nix, the line ending is a single new line character. In windows it is a carriage return character followed by a new line character. Unicode encoded files can also affect line endings. Check your text editor documentation. There should be a way to convert … Read more

Woo Commerce filter

This is my solution. I have found that this function (woocommerce_order_status_completed) is for when you made a payment or when you give completed status. woocommerce_order_status_completed{ function check_quantity($order_id) { global $wpdb; $order = new WC_Order( $order_id ); $items = $order->get_items(); foreach ( $items as $item ) { $product_name = $item[‘name’]; $product_id = $item[‘product_id’]; $product_variation_id = $item[‘variation_id’]; … Read more

Problem updating from 3.6 to 3.7

I’m also having the same problem. Plugin Updates work fine, but WordPress 3.7 (or the new 3.7.1 update) fail. Manual updating via copying over the wordpress core files worked to update to 3.7, but the 3.7.1 update fails again. I then changed nginx.conf and added in the http part (read it somewhere else – it’s … Read more

Display products based on sub-categories

you can register a new widget with your custom loop like this <?php add_action( ‘widgets_init’, ‘Miy_widget_box’ );?> <?php function Miy_widget_box() { register_widget( ‘Miy_Widget’ ); }?> <?php class Miy_Widget extends WP_Widget { public function __construct() { // widget actual processes parent::WP_Widget(false,’Title Widget’,’description=Description Widget’); } public function form( $instance ) { // outputs the options form on … Read more

WordPress In Menu

You can adjust what items are shown in the menu via the wp_get_nav_menu_items. This is the same filter that I am using in my Nav Menu Roles plugin. Adapting from that, we can loop through the menu items, and check if any of them are links to the “checkout” page. From there we can test … Read more