City A/C Repair

“”” Alvin A/C Repair Website Welcome to Alvin A/C Repair, your trusted source for all your air conditioning repair needs in Alvin, Texas. We are a professional HVAC company dedicated to providing exceptional services at affordable prices. With a team…Continue reading

Set the Payment fields in the Sign Up form as required

add_filter(‘wcv_vendor_paypal_address’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_paypal_venmo’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_account_name’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_account_number’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_name’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_routing_number’, ‘wcv_set_payment_field_required’); add_filter(‘wcv_vendor_bank_bic_swift’, ‘wcv_set_payment_field_required’); /** * Add required attribute to payment fields * * @param array $payment_field The input field to modify. * * @return array $payment_field The modified input…Continue reading

Advanced Dropdown Menu

function dropdown_menu_shortcode($atts) { // get the attributes $atts = shortcode_atts( array( ‘id’ => ”, ), $atts, ‘dropdown_menu’ ); // get the menu $menu = wp_get_nav_menu_object( $atts[‘id’] ); $menu_items = wp_get_nav_menu_items($menu->term_id); // get the current URL $current_url = home_url( $_SERVER[‘REQUEST_URI’] );…Continue reading

Add “Plugins” item to the admin top bar.

add_action( ‘admin_bar_menu’, function($wp_admin_bar) { $wp_admin_bar->add_node( array( ‘id’ => ‘plugins’, ‘title’ => ‘Plugins’, ‘href’ => esc_url( admin_url( ‘plugins.php’ ) ), ‘meta’ => false )); }, 999);Continue reading

Custom excerpt for password protected pages

/** * Snippet Name: Custom excerpt for password protected pages * Snippet URL: https://wpcustoms.net/snippets/custom-excerpt-password-protected-pages/ */ function password_required_excerpt( $excerpt ) { if ( post_password_required() ) { $excerpt = ‘This is a private page to request the password please contact the site…Continue reading