For all the questions related to server, or current files, or system using, you get the answer from a single php global variable: it is $_SERVER. just print_r($_SERVER) the variable you get all the ...Read More
Use any order hooks. here we get the deatils of coupen once cancelled the order from orders list add_action(‘woocommerce_order_status_cancelled’, ‘order_cancelled_woo’); orde...Read More
Add Custom User Meta During Registration in WordPress add_action( ‘user_register’, ‘bonus_point_for_new_user’); function bonus_point_for_new_user( $user_id ) { add_user_meta($u...Read More
Check whether is there any space before or after php opening and closing tag respectively in functions.php. If not deactivate each plugin and identify which plugin causes the issue, Then remove the ex...Read More
To add extra fields to taxonomy or category use below hook: add_action(‘categoryname’_add_form_fields,’function_name’); Sample: function add_extra_fields() { ?> <div clas...Read More
$file_var= fopen(“newfile.html”, ‘w’); fwrite($file_var= , $html_elements); fclose($file_var); To use this file in html code: include(“newfile.html”);...Read More
echo $plugin_folder= plugins_url(); To get any specific file inside plugin directory use : Here getting path of file ‘widget_newslider11123.html’ insde plugin “books” echo plug...Read More