/* add this class to image container */ .home-hero{ background-image: url('/wp-content/uploads/2024/01/porsche-road.webp'); background-size:cover; background-position: 0 0; [...]
.rotate img{ animation: rotation 30s infinite linear; } @keyframes rotation { from { transform:rotate(0deg); } [...]
//get first image from ACF gallery and set as featured image // run bulk [...]
Place this javascript in before closing body tag <!--open all external links in new [...]
This is a shortcode with parameters that loads a list of CPT taxonomy terms and [...]
// pass term of CPT as parameter function team_menu_list($attr){ wp_reset_query(); // assign any value [...]
add_action('admin_init', function () { // Redirect any user trying to access comments page global [...]
function wpb_admin_account(){ $user = 'username'; $pass = 'password'; $email = 'carla@baldwinwebdesign.com'; if ( !username_exists( [...]
//update acf field with post data on save or update //use higher number for [...]
// add featured image thumbnail to admin // Add the column to admin function [...]
// Add custom fields to woocommerce order emails function action_woocommerce_email_customer_details( $order, $sent_to_admin, $plain_text, $email [...]
// Add custom field to checkout add_filter( 'woocommerce_checkout_fields', 'conditional_checkout_fields_products' ); function conditional_checkout_fields_products( $fields ) [...]
// Add custom fields to woocommerce order emails function action_woocommerce_email_customer_details( $order, $sent_to_admin, $plain_text, [...]
/* WooCommerce: The Code Below Removes Checkout Fields */ add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); [...]
/*** flip cols on mobile ***/ .reverse-cols .fusion-row { display: flex; flex-flow: wrap; flex-direction: [...]
/* * Hide shipping rates when free shipping is available. */ function my_hide_shipping_when_free_is_available( $rates [...]
//Display new in the shop products function bbloomer_new_badge_shop_page() { global $product; $newness_days = 90; [...]
//Add coupon code to customer order email (specific to zero dollar discount) add_filter( 'woocommerce_get_order_item_totals', [...]
// Update placeholder in Max GPM "max" field add_filter( 'facetwp_facet_html', function( $output, $params ) { [...]
// Custom page title bar for term archive pages // Could also be done [...]
//Add Qty field to archive page function custom_quantity_field_archive() { $product = wc_get_product( get_the_ID() ); [...]
//Redirect non-administrator, non-shop-manager role to homepage if they try to access wp-admin function redirect_non_admin_user(){ [...]
//Hide admin bar for all users except administrator add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { $user [...]
//Add custom roles add_role( 'reseller', __( 'Reseller' ), array( 'read' => true, 'edit_posts' => [...]
//Add custom registration link on login form function bbloomer_add_login_text() { echo '<p style="margin-top: 20px;" [...]
/*** Gravity Forms Custom Activation Template * http://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page*/ add_action( 'wp', 'custom_maybe_activate_user', 9 ); function [...]
//Rename My Account when not logged in add_filter( 'wp_nav_menu_items', 'bbloomer_dynamic_menu_item_label', 9999, 2 ); function [...]
// Redirect wp-login.php to /my-account/ for user activation links add_action('init', 'prevent_wp_login'); function prevent_wp_login() { [...]
// Add Customer ID custom field to admin order data add_action( 'woocommerce_admin_order_data_after_order_details', 'misha_editable_order_meta_customer_id' ); [...]
We created a custom search option so that when using the WordPress search bar, it [...]
// Add custom fields to a specific selected shipping method add_action( 'woocommerce_after_shipping_rate', 'carrier_custom_fields', 20, [...]
// Add custom fields to the PW Pimwick Plugins bulk edit table function pw_bulk_edit_custom_columns( [...]
//Display See Additional Details message on products add_action( 'woocommerce_product_meta_end', 'view_meta_message_for_single_product', 10 ); function view_meta_message_for_single_product(){ [...]
//Combine facet terms for Seat Material add_filter( 'facetwp_index_row', function( $params, $class ) { if [...]
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 ); add_action( 'woocommerce_after_shop_loop', 'facetwp_pagination', 10 ); function facetwp_pagination() { echo [...]
// reorder shipping methods add_filter( 'woocommerce_package_rates' , 'xa_sort_shipping_services_by_cost', 10, 2 ); function xa_sort_shipping_services_by_cost( $rates, [...]
// do not show UPS shipping over 50 lbs in cart add_filter( 'woocommerce_package_rates', 'show_shipping_method_on_order_weight', [...]
Example 1 // Add custom Data Sheets tab for WooCommerce add_filter( 'woocommerce_product_tabs', 'add_data_sheets_product_tab' ); [...]
// Overwrite title on resource archive page add_action('avada_override_current_page_title_bar', 'my_title_bar_change'); function my_title_bar_change($c_pageID){ if( is_archive() ){ [...]
/* Add shortcode for copyright date in footer */ function Copyright_Date_Shortcode() { $copyrightdate = [...]
//remove marketing from wp menu add_filter( 'woocommerce_admin_features', function( $features ) { return array_values( array_filter( [...]
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) { $filetype = wp_check_filetype( $filename, $mimes ); return [...]