open up the wp-includes/load.php
if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
@ini_set( 'display_errors', 1 );
}
open up the wp-includes/load.php
if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
@ini_set( 'display_errors', 1 );
}
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 |
\xampp\php
) and edit the php.ini
file.[Date]
section copy and paste your time zone in this format: date.timezone=Atlantic/Faroe
\xampp\mysql\bin
) and edit the my.ini
file.default-time-zone=Atlantic/Faroe
\xampp\apache\conf
) and edit the httpd.conf
file.SetEnv TZ Atlantic/Faroe
Have you loast your password or user id and you have not set any mail server on it.
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
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);
}
});
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'
));
}
}
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
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');