Cache 2
location /srv/htdocs/wp-content/wpo-cache { deny all; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
location /srv/htdocs/wp-content/wpo-cache { deny all; }Continue reading
add_filter( ‘wfea_cal_extra_options’, function ( $options ) { $options[‘fullcalendar’][‘showNonCurrentDates’] = false; return $options; }, 10, 1 );Continue reading
// This code snippet generates the original “Wedding Vendors” vendor credits list. // The vendor credit data is located within ACF “Post Fields” (group_5601197f77d36) field group. // Applies to the following Post Categories: // – Real Weddings // – Real…Continue reading
// This code snippet generates the original “Wedding Vendors” vendor credits list. // The vendor credit data is located within ACF “Post Fields” (group_5601197f77d36) field group. // Applies to the following Post Categories: // – Real Weddings // – Real…Continue reading
add_filter( ‘aioseo_schema_output’, function ( $schema ) { foreach ( $schema as &$schemaItem ) { if ( isset( $schemaItem[‘@type’] ) && ‘Product’ === $schemaItem[‘@type’] ) { if(!empty($schemaItem[“offers”][“shippingDetails”])){ // Loop inside the Offers > shippingDetails schema foreach( $schemaItem[“offers”][“shippingDetails”] as &$schemaItemChild ){ //…Continue reading
This snippet is no longer needed because the functionality it provides is now built into the plugin.Continue reading
/** * Disable the emojis in WordPress. */ add_action( ‘init’, function () { remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 ); remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ ); remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ ); remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ ); remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ ); remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ ); remove_filter( ‘wp_mail’,…Continue reading
add_action( ‘wp’, ‘example_charitable_update_donation_fields’ ); function example_charitable_update_donation_fields() { // Get the donation fields. $fields = charitable()->donation_fields(); // Get the field we want to update. $field = $fields->get_field( ‘state’ ); // Update the field’s label to say “Province” on the donation form…Continue reading