// Disable core auto-updates add_filter( ‘auto_update_core’, ‘__return_false’ ); // Disable auto-updates for plugins. add_filter( ‘auto_update_plugin’, ‘__return_false’ ); // Disable auto-updates for themes. add_filter( ‘auto_update_theme’, ‘__return_false’ );Continue reading
add_action( ‘login_enqueue_scripts’, ‘cmx65_login’ ); function cmx65_login() { $login = array( ‘color’ => ‘#15adcb’, ‘focus’ => ‘#8d44ac’, ); ?> .language-switcher, .privacy-policy-page-link { display:none; } .forgetmenot { position:relative; top:5px; } .login #nav { text-align:right; } .login form, #loginform { position: relative; margin-left:…Continue reading
/** * Custom shortcode to display WPForms form entries in table view. * * Basic usage: [wpforms_entries_table id=”FORMID”]. * * Possible shortcode attributes: * id (required) Form ID of which to show entries. * user User ID, or “current” to…Continue reading
function affwp_custom_set_role_on_registration( $affiliate_id = 0 ) { $user_id = affwp_get_affiliate_user_id( $affiliate_id ); $user = new WP_User( $user_id ); $user->add_role( ‘affiliate’ ); } add_action( ‘affwp_insert_affiliate’, ‘affwp_custom_set_role_on_registration’ );Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading
/** * Plugin Name: WP Simple Pay – Custom Rate Limit Maximum * Plugin URI: https://wpsimplepay.com * Author: Sandhills Development, LLC * Author URI: https://sandhillsdev.com * Description: Changes the default rate limit maximum. * Version: 1.0 */ /** * Changes…Continue reading
// [current_user_display_name] function display_current_user_display_name () { $user = wp_get_current_user(); $display_name = $user->display_name; return $user->display_name; } add_shortcode(‘current_user_display_name’, ‘display_current_user_display_name’);Continue reading
// Please edit the address and name below before activating this snippet. // Change the From address. add_filter( ‘[email protected]’; function ( $original_email_address ) { return; } ); // Change the From name. add_filter( ‘allowmetoshare’; function ( $original_email_from ) { return;…Continue reading