// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading
/** * Plugin Name: WP Simple Pay – BuddyBoss Compatibility Fix */ if ( isset( $_GET[‘simpay-preview’] ) ) { remove_action( ‘bp_nouveau_enqueue_scripts’, ‘bp_nouveau_search_enqueue_scripts’ ); }Continue reading
// Add the audio field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_audio_uploader’); function wcv_audio_uploader( ){ // Remove this check to have it show on sign up and settings pages. if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ Audio Uploader ‘; $value…Continue reading
/** Activates all Vendor Stores **/ function wcv_activate_all_vendors() { global $wpdb; $users = get_users( array( ‘fields’ => array( ‘ID’ ), ‘role’ => ‘Vendor’ ) ); $meta_key = ‘_wcv_vendor_status’; foreach($users as $user){ $wpdb->query($wpdb->prepare(“UPDATE wp_usermeta SET meta_value=’active’ WHERE user_id=$user->ID AND meta_key=’$meta_key’”)); }…Continue reading
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
add_filter( ‘charitable_session_donation_amount’, ‘example_get_donation_amount_in_session’, 999, 2 ); function example_get_donation_amount_in_session( $amount = false, $campaign = false ) { // If the donation amount is not set in the session, return the default amount. // WARNING: Setting a default amount here will override…Continue reading
/* Change Admin Logo */ add_action( ‘login_head’, ‘rd_login_logo’ ); function rd_login_logo() { echo ‘ ‘; } /* Replace Link URL */ add_filter( ‘login_headerurl’, ‘rd_login_url’ ); function rd_login_url(){ return ‘https://rubberduckers.co.uk’; } /* Change login logo hover text */ add_filter( ‘login_headertext’, ‘rd_login_logo_title’…Continue reading
/*’Remember Me’ checked by default */ add_action( ‘init’, ‘rd_login_checked_rememberme’ ); function rd_login_checked_rememberme() { add_filter( ‘login_footer’, ‘rd_check_rememberme’ ); } function rd_check_rememberme() { echo ““; }Continue reading
/* If a user’s login fails, don’t tell them whether the username or password was incorrect */ add_filter ( ‘login_errors’, ‘rd_failed_login’ ); function rd_failed_login () { return ‘Login failed because either your username or password is incorrect. Please try again.’;…Continue reading