Skip to content
WPCode Library

WPCode Library

Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!

Get WPCode
See all Features

  • Features
    • Code Snippets Library
    • Smart Conditional Logic
    • Advanced Code Revisions
    • Private Cloud Library
    • Marketing Scripts & Conversion Pixels
  • Pricing
  • Snippets Library
  • Help Center
    • Docs
    • Support
  • Blog
  • Login
  • Get WPCode

Snippets library

Browse Snippets
Claim your Free Profile
Add Snippet

Type: php

Gravity Forms Repeater Field for Video Galleries (Vendor and Venue)

/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 5), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading

Gravity Forms Repeater Field for Video Galleries (Vendor and Venue)

/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 10), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading

Gravity Forms Repeater Field for Video Galleries (Vendor and Venue)

/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 10), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading

Gallery Image Management for Vendors and Venues

/** * * Retrieve post ID by user ID and post type (either ‘vendor’ or ‘venue’). * * @param int $user_id The current user’s ID. * @param string $post_type The post type to search for (‘vendor’ or ‘venue’). * @return…Continue reading

Gallery Image Management for Vendors and Venues

/** * * Retrieve post ID by user ID and post type (either ‘vendor’ or ‘venue’). * * @param int $user_id The current user’s ID. * @param string $post_type The post type to search for (‘vendor’ or ‘venue’). * @return…Continue reading

Conditionally Show the Submit Button

/** * Conditionally show the submit button * * @link https://wpforms.com/developers/how-to-conditionally-show-the-submit-button/ */ add_action( ‘wp_head’, function () { ?>Continue reading

Info Removal Snippit

remove_action(‘woocommerce_single_product_summary’,’woocommerce_template_single_meta’,40);Continue reading

Photo-Profile Dashboard for login users ( If your theme does not have any ) #The Greek

function custom_default_avatar($avatar_defaults) { $myavatar = ‘https://pharmacyneeds.gr/wp-content/uploads/2024/06/PharamcyNeeds-Logo-User.png.png’; $avatar_defaults[$myavatar] = “Default Avatar”; return $avatar_defaults; } add_filter(‘avatar_defaults’, ‘custom_default_avatar’); function set_custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) { $custom_avatar_url = ‘https://pharmacyneeds.gr/wp-content/uploads/2024/06/PharamcyNeeds-Logo-User.png.png’; // Check if the user has a gravatar $user_avatar = get_avatar_data($id_or_email); // If…Continue reading

Block Email Domains ‘secmail.pro’ etc #The Greek

function check_disposable_email_domains($user_id) { // Λήψη του email του χρήστη με το user ID $user_info = get_userdata($user_id); $user_email = $user_info->user_email; // Extensive list of temporary email domains it wants you to block $blocked_domains = array( ‘secmail.pro’, ‘secmail.net’, ‘secmail.org’, ‘secmail.com’, ‘tempmail.com’,’1secmail.com’, ’10minutemail.com’,…Continue reading

Add Informational Message Below the Username Field in the Login/Register Form #The Greek

function add_custom_message_to_username_field() { ?>Continue reading

Page navigation

Previous 1 … 148 149 150 151 152 … 478 Next

Company

  • About
  • Careers
  • Testimonials
  • Blog
  • Affiliates
  • Contact
  • Twitter
  • Facebook

Powerful Code Features

  • Ready-made Snippets Library
  • Smart Conditional Logic
  • Advanced Auto-insert Locations
  • Global Header & Footer Scripts
  • Safe Error Handling
  • WordPress Code Generators

  • Ecommerce Conversion Pixels
  • Dynamic Content Elements
  • Reduce Number of Plugins
  • Save Snippets in Cloud
  • Easy Code Management
  • Advanced Code Revisions

Helpful Links

  • Support
  • Documentation
  • Plans & Pricing
  • WordPress Hosting
  • Start a Blog
  • Make a Website

Copyright © 2025 WPCode. WPCode® is a registered trademark of WPCode, LLC

Terms of Service
Privacy Policy
FTC Disclosure
Sitemap
WPCode Coupon

The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress®, names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WPCode is not endorsed or owned by, or affiliated with, the WordPress Foundation.

Snippet Preview