If you have a slow import, or if you're running into a lot of server timeouts, then you can follow these steps to optimize your import.
Follow all of the steps listed here: http://www.wpallimport.com/documentation/troubleshooting/slow-imports/.
DELETE FROM wp_postmeta WHERE meta_key = 'your-meta-key'; |
<?php | |
// PHP memory limit for this site | |
define( 'WP_MEMORY_LIMIT', '128M' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
// Database | |
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
// Explicitely setting url |
/* Disable VC auto-update */ | |
function seventhqueen_vc_disable_update() { | |
if (function_exists('vc_license') && function_exists('vc_updater') && ! vc_license()->isActivated()) { | |
remove_filter( 'upgrader_pre_download', array( vc_updater(), 'preUpgradeFilter' ), 10); | |
remove_filter( 'pre_set_site_transient_update_plugins', array( | |
vc_updater()->updateManager(), | |
'check_update' | |
) ); |
<?php | |
$currentlang = get_bloginfo('language'); | |
if($currentlang=="en-GB"): | |
?> | |
<?php elseif($currentlang=="pl-PL"): ?> | |
<?php endif; ?> |
//maps.googleapis.com | |
//maps.gstatic.com | |
//fonts.googleapis.com | |
//fonts.gstatic.com | |
//ajax.googleapis.com | |
//apis.google.com | |
//google-analytics.com | |
//www.google-analytics.com | |
//ssl.google-analytics.com | |
//youtube.com |
<?php | |
/**resize on upload to the largest size in media setting */ | |
function replace_uploaded_image($image_data) { | |
// if there is no large image : return | |
if (!isset($image_data['sizes']['large'])) return $image_data; | |
// path to the uploaded image and the large image | |
$upload_dir = wp_upload_dir(); |
add_filter('woocommerce_package_rates', 'wf_remove_shipping_options_for_particular_country', 10, 2); | |
function wf_remove_shipping_options_for_particular_country($available_shipping_methods, $package){ | |
global $woocommerce; | |
//Config this array with country code and corresponding shipping methods to hide. | |
$country_list = array( | |
'CA' => array('wf_fedex_woocommerce_shipping','free_shipping'), | |
); |
/* | |
* Add our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |
<?php | |
/* | |
Plugin Name: CI Comment Rating | |
Description: Adds a star rating system to WordPress comments | |
Version: 1.0.0 | |
Author: The CSSIgniter Team | |
Author URI: https://cssigniter.com/ | |
*/ | |
//Enqueue the plugin's styles. |
If you have a slow import, or if you're running into a lot of server timeouts, then you can follow these steps to optimize your import.
Follow all of the steps listed here: http://www.wpallimport.com/documentation/troubleshooting/slow-imports/.