made by lokalstolz
add_action(‘wp_head’, function() { echo ‘‘; }, 1);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action(‘wp_head’, function() { echo ‘‘; }, 1);Continue reading
// 設定 WordPress 記憶體限制 define(‘WP_MEMORY_LIMIT’, ‘256M’); define(‘WP_MAX_MEMORY_LIMIT’, ‘512M’); // 設定 PHP 執行層的上傳限制 @ini_set(‘upload_max_filesize’, ’64M’); @ini_set(‘post_max_size’, ’64M’); @ini_set(‘max_execution_time’, ‘300’);Continue reading
add_action(‘init’, function() { global $wp_post_types; if (isset($wp_post_types[‘awb_off_canvas’])) { $wp_post_types[‘awb_off_canvas’]->public = true; } }, 11);Continue reading
add_filter( ‘sgo_bypass_query_params’, ‘add_sgo_bypass_query_params’); function add_sgo_bypass_query_params( $bypass_query_params ) { // Add custom query params, that will skip the cache. $bypass_query_params[] = ‘condis’; return $bypass_query_params; }Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_posts’; } );Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘publish_posts’; } );Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_pages’; } );Continue reading
add_filter( ‘optin_monster_api_menu_cap’, function( $cap ) { return ‘edit_pages’; } );Continue reading
define( ‘OPTINMONSTER_API_USER’, ‘your_username_here’ ); define( ‘OPTINMONSTER_API_KEY’, ‘your_key_here’ );Continue reading
function shortcode_categorie_principali_wc() { $args = array( ‘taxonomy’ => ‘product_cat’, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘hide_empty’ => false, ‘parent’ => 0, ‘pad_counts’ => true, ‘hierarchical’ => true, ); $categories = get_terms($args); if (empty($categories) || is_wp_error($categories)) { return ‘ Nessuna categoria…Continue reading