This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head', function() { | |
?><style> | |
.woocommerce button[name="update_cart"], | |
.woocommerce input[name="update_cart"] { | |
display: none; | |
}</style><?php | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fitness : Acceleration, Agility, Jumping, Pace, Stamina, Strength and Reflexes +natural fitness | |
Shooting : Finishing and Long Shots +penalties | |
Skill : Crossing, Dribbling, Heading, Passing, Set Pieces, Tackling and Technique +corners, preferred foot, free kicks -set pieces (this isnt | |
true, as you proved Set Pieces are included) | |
Tactics : Decisions, Marking, Off the Ball, Positioning and Teamwork | |
Goalkeeping : Handling +one on ones | |
Fitness : Acceleration, Agility, Jumping, Pace, Stamina, Strength and Reflexes | |
Shooting : Finishing and Long Shots | |
Skill : Crossing, Dribbling, Heading, Passing, Set Pieces, Tackling and Technique |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://docs.pluginize.com/article/post-types-in-category-tag-archives/ | |
function my_cptui_add_post_types_to_archives( $query ) { | |
// We do not want unintended consequences. | |
if ( is_admin() || ! $query->is_main_query() ) { | |
return; | |
} | |
if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { | |
$cptui_post_types = cptui_get_post_type_slugs(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="countryCode" id="" class=""> | |
<option data-countryCode="ES" value="34" selected>+34</option> | |
<option data-countryCode="GB" value="44">+44</option> | |
<option data-countryCode="US" value="1">+1</option> | |
<optgroup label="Other countries"> | |
<option data-countryCode="DZ" value="213">+213</option> | |
<option data-countryCode="AD" value="376">+376</option> | |
<option data-countryCode="AO" value="244">+244</option> | |
<option data-countryCode="AI" value="1264">+1264</option> | |
<option data-countryCode="AG" value="1268">+1268</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wpdb->last_error | |
OR | |
<?php $wpdb->show_errors(); ?> | |
<?php $wpdb->hide_errors(); ?> | |
<?php $wpdb->print_error(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqlcheck --auto-repair -o --all-databases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Elementor; | |
use \Elementor\Core\Schemes\Color AS Scheme_Color; | |
use \Elementor\Core\Schemes\Typography AS Scheme_Typography; | |
class Widget_Post_Type_Items extends Widget_Base { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select> | |
<option value="93">🇦🇫 Afghanistan </option> | |
<option value="358">🇦🇽 Åland Islands </option> | |
<option value="355">🇦🇱 Albania </option> | |
<option value="213">🇩🇿 Algeria </option> | |
<option value="1684">🇦🇸 American Samoa </option> | |
<option value="376">🇦🇩 Andorra </option> | |
<option value="244">🇦🇴 Angola </option> | |
<option value="1264">🇦🇮 Anguilla </option> | |
<option value="1268">🇦🇬 Antigua & Barbuda </option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print_r(array_values(array_filter($stack))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Drop cap first letter of each post. | |
*/ | |
function add_drop_caps($content) | |
{ | |
global $post; | |
//only posts | |
if(!empty($post) && $post->post_type == "post") | |
{ |
NewerOlder