Tuesday, 21 December 2021
Prevent to excute second time ajax
Thursday, 9 December 2021
Add Image in Post category
Thursday, 21 October 2021
Change order Tabel column
Tuesday, 12 October 2021
Time zone list
Time zone list
This section lists the supported time zones together with their description.
Name | Description | Relative to GMT |
---|---|---|
GMT | Greenwich Mean Time | GMT |
UTC | Universal Coordinated Time | GMT |
ECT | European Central Time | GMT+1:00 |
EET | Eastern European Time | GMT+2:00 |
ART | (Arabic) Egypt Standard Time | GMT+2:00 |
EAT | Eastern African Time | GMT+3:00 |
MET | Middle East Time | GMT+3:30 |
NET | Near East Time | GMT+4:00 |
PLT | Pakistan Lahore Time | GMT+5:00 |
IST | India Standard Time | GMT+5:30 |
BST | Bangladesh Standard Time | GMT+6:00 |
VST | Vietnam Standard Time | GMT+7:00 |
CTT | China Taiwan Time | GMT+8:00 |
JST | Japan Standard Time | GMT+9:00 |
ACT | Australia Central Time | GMT+9:30 |
AET | Australia Eastern Time | GMT+10:00 |
SST | Solomon Standard Time | GMT+11:00 |
NST | New Zealand Standard Time | GMT+12:00 |
MIT | Midway Islands Time | GMT-11:00 |
HST | Hawaii Standard Time | GMT-10:00 |
AST | Alaska Standard Time | GMT-9:00 |
PST | Pacific Standard Time | GMT-8:00 |
PNT | Phoenix Standard Time | GMT-7:00 |
MST | Mountain Standard Time | GMT-7:00 |
CST | Central Standard Time | GMT-6:00 |
EST | Eastern Standard Time | GMT-5:00 |
IET | Indiana Eastern Standard Time | GMT-5:00 |
PRT | Puerto Rico and US Virgin Islands Time | GMT-4:00 |
CNT | Canada Newfoundland Time | GMT-3:30 |
AGT | Argentina Standard Time | GMT-3:00 |
BET | Brazil Eastern Time | GMT-3:00 |
CAT | Central African Time | GMT-1:00 |
Change Set Default Timezone On Xampp Server

- Navigate to the php folder (normally in
\xampp\php
) and edit thephp.ini
file. - Under the
[Date]
section copy and paste your time zone in this format:date.timezone=Atlantic/Faroe

- Navigate to the MySQL bin folder (normally in
\xampp\mysql\bin
) and edit themy.ini
file. - Copy and paste your time zone in this format:
default-time-zone=Atlantic/Faroe

- Navigate to the apache configuration folder (normally in
\xampp\apache\conf
) and edit thehttpd.conf
file. - Copy and paste your time zone in this format:
SetEnv TZ Atlantic/Faroe
Monday, 27 September 2021
Forgot your password Not set email server for recovery password But you have filemanger and database access
Have you loast your password or user id and you have not set any mail server on it.
Step 1:
Friday, 24 September 2021
Increase sql upload size xampp
First you have to change values in php.ini file as per your requirements.
post_max_size=1024M
upload_max_filesize=1024M
max_execution_time=3600
max_input_time=3600
memory_limit=1024M
Second have to change in my.ini file
max_allowed_packet=1024M
Then resart xampp
Monday, 20 September 2021
File send by Ajax
var formData = new FormData();
formData.append('section', 'general');
formData.append('action', 'docxtohtmlcontent');
formData.append('image', jQuery('#docx_file')[0].files[0]);
$.ajax({
type: 'POST',
url: "<?php echo admin_url('admin-ajax.php'); ?>",
data: formData,
cache: false,
contentType: false,
processData: false,
success: function(data) {
console.log(data);
}
});
Sunday, 19 September 2021
Monday, 6 September 2021
Simple Ajax call on Wordpress
Below code in where you need ajax data
jQuery(document).ready(function() {
jQuery.ajax({
type: 'POST',
url: "<?php echo admin_url('admin-ajax.php'); ?>",
data: {
"action": "change_store_ajax_callback_function",
},
success: function(data) {
jQuery('#copy_content_loading_image').hide();
console.log(data);
}
});
});
Below code in functions.php
add_action('wp_ajax_change_store_ajax_callback_function', 'change_store_ajax_callback_function');
add_action('wp_ajax_nopriv_change_store_ajax_callback_function', 'change_store_ajax_callback_function');
function change_store_ajax_callback_function(){
$a = get_post_status(($_POST['current_value']));
if($a == 'publish'){
wp_update_post(array(
'ID' => $_POST['current_value'],
'post_status' => 'draft'
));
}else{
wp_update_post(array(
'ID' => $_POST['current_value'],
'post_status' => 'publish'
));
}
}
Monday, 26 April 2021
wordpress remove quick edit custom post type
wordpress remove quick edit custom post type
It is safe to say that you are searching for an approach to eliminate the alter, view, rubbish, and fast alter joins that you see when you mouse over a post? While there's likely a module for this, we have made a fast code piece that you can use to eliminate alter, view, waste, and speedy alter joins inside posts administrator in WordPress.
add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );
function remove_row_actions( $actions )
{
if( get_post_type() === 'post' )
unset( $actions['edit'] );
unset( $actions['view'] );
unset( $actions['trash'] );
unset( $actions['inline hide-if-no-js'] );
return $actions;
}
Before
Wednesday, 21 April 2021
How to Change Default Media Upload Folder in WordPress?
Add the following lines in “wp-config.php” file and save your changes. The first line is a comment line for future reference.
/** Change Media Upload Directory */ define('UPLOADS', ".'media');
Tuesday, 20 April 2021
Add custom discount on subtotal in woocommerce by hook woocommerce_cart_calculate_fees

add_action( 'woocommerce_cart_calculate_fees', 'elex_discount_price' );
function elex_discount_price()
{
global $woocommerce;
$discount_price = 0;
foreach (WC()->cart->get_cart() as $cart_item_key => $values) {
if(isset($values["custom_data"]) && $values["custom_data"] == "Free Product" && $values["quantity"] == 1){
$discount_price = $values["line_total"];
}
}
$woocommerce->cart->add_fee( 'Discounted Price', -$discount_price, true, 'standard' );
}