Type: php
code at the end of the body tag
Cache 2
location /srv/htdocs/wp-content/wpo-cache { deny all; }Continue reading
Change Month Calendar to show only items in the month | Display Eventbrite Plugins
add_filter( ‘wfea_cal_extra_options’, function ( $options ) { $options[‘fullcalendar’][‘showNonCurrentDates’] = false; return $options; }, 10, 1 );Continue reading
Untitled Snippet
PHP [Post Category]: Populate the Original Vendor Credits Below Post Content
// 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
PHP [Post Category]: Populate the Original Vendor Credits Below Post Content
// 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
Prompt Generator Tool
Add deliveryTime schema to shippingDetails schema
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
WP Simple Pay: Enqueue common.js
This snippet is no longer needed because the functionality it provides is now built into the plugin.Continue reading