Styling the Cookies plugin by CookiesYes

/* Styling the Cookies plugin by CookiesYes * Authored by John Foliot – Foliot Digital Accessibility Services (https://fdas.ca) */ /* * This plugin is a bugger to style – why I don’t know and I never bothered to investigate. The…Continue reading

Archive Orderby Title

add_action(‘pre_get_posts’, ‘change_archive_order’); function change_archive_order( $query ) { if ( $query->is_main_query() && !is_admin() && is_post_type_archive(‘post’) ) { // Replace ‘post’ with your desired post type $query->set(‘orderby’, ‘title’); $query->set(‘order’, ‘ASC’); } }Continue reading

Get Group ID

function bp_get_current_group_id_forms() { $current_group = groups_get_current_group(); $current_group_id = isset( $current_group->id ) ? (int) $current_group->id : 0; /** * Filters the ID of the current group. * * @since BuddyPress 1.5.0 * * @param int $current_group_id ID of the current group.…Continue reading

fibosearch-search-by-brand

//https://fibosearch.com/documentation/tips-tricks/how-to-search-for-brands/ add_filter( ‘dgwt/wcas/indexer/taxonomies’, function ( $taxonomies ) { $taxonomies[] = array( ‘taxonomy’ => ‘pa_brand’, ‘labels’ => array( ‘name’ => ‘Brands’, ‘singular_name’ => ‘Brand’, ), ‘image_support’ => true, ); return $taxonomies; } );Continue reading

Localizing Date Picker Strings (copy)

/** * Load the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_locale( $forms ) { if ( true === wpforms_has_field_type( ‘date-time’, $forms, true )){ wp_enqueue_script( ‘wpforms-datepicker-locale’, ‘https://npmcdn.com/[email protected]/dist/l10n/es.js’, array( ‘wpforms-flatpickr’ ), null, true ); } } add_action( ‘wpforms_frontend_js’,…Continue reading