Woocommerce – custom variable in webhooks

Woocommerce has the most flexible webhook system where you can include your own custom fields based on the order, products etc The action ‘woocommerce_webhook_payload’ helps us to perform the hooking…

Delete a cookie using php or jquery

Using PHP To remove a cookie in php we can use setcookie function unset($_COOKIE[‘amazon’]); setcookie(‘amazon’, null, -1, ‘/’); where amazon is the name of the cookie. Second parameter must be…

CWD 3D Image Gallery WordPress Plugin

[3d_gallery id=1]   Synopsis   CWD 3D Image Gallery plugin from Coral Web Designs   Introduction Requirements Installation How to use About us   INTRODUCTION Displaying images in 3d view…

Bigcommerce Custom Css

To add custom style for existing theme login into the server using webdav and you will find the folder structure. Search for styles folder and upload a file called “custom.css”…

Bigcommerce WEBDAV tool

I had the opportunity to work in bigcommerce for one of the clients and i couldn’t find the right tool. Since i am using a PC i tried 3 different…

Jetpack not connecting 404 error

Check the url www.domain.com/xmlrpc.php and you should receive only “XML-RPC server accepts POST requests only.” If any other content is loaded then either you are hacked or your server is…

Fetch the first image from the post

We can grab the first image from the post content using the below function. function fetch_first_image($id) { $p = get_post($id); $first_img = ”; ob_start(); ob_end_clean(); $output = preg_match_all(‘//i’, $p->post_content, $matches);…

Wp ajax call returns 0 at the end

To any wp ajax call add_action(‘wp_ajax_my_action’, ‘my_action_callback’); function my_action_callback() { //Do action // echo ‘My ajax action’; die(); } Don’t forget to add the die() at the end of ajax…

Wp editor in custom meta box

Before Wp 3.2 any textarea can be changed into a tiny-mce editor by adding the class =’theEditor’ But in recent versions it didn’t work as expected. So after lot of…

End of facebook sharebutton

Facebook has withdrawn support for its famous share button. You might have noticed that either share button gone from your site or broken link at the place of share button….