Category: Login
header and footer
header and footer
Restrict Downloads to Purchase Email
class EDD_Force_Login_And_Email { function __construct() { add_action( ‘plugins_loaded’, array( $this, ‘load’ ) ); } public function load() { add_filter( ‘edd_file_download_has_access’, array( $this, ‘check_access’ ), 9999, 3 ); } public function check_access( $has_access, $payment, $args ) { if( ! is_user_logged_in() )…Continue reading
Disable Automatic Updates Emails (copy)
// 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
Add Custom Logo & CSS to the Login Page
function g9_custom_login_css() { ?>Continue reading
Change Registration Email Login URL
add_filter( ‘edd_user_registration_email_login_url’, ‘eddcustom_modify_user_login_url’ ); /** * Modifies the login URL for the default user registration email. * * @return string */ function eddcustom_modify_user_login_url() { return ‘https://www.google.com/login’; }Continue reading
test
testContinue reading
Logout URL (copy)
<a href="”>LogoutContinue reading
Untitled Snippet (copy)
(function(w,d,e,u,f,l,n){w[f]=w[f]||function(){(w[f].q=w[f].q||[]) .push(arguments);},l=d.createElement(e),l.async=1,l.src=u, n=d.getElementsByTagName(e)[0],n.parentNode.insertBefore(l,n);}) (window,document,’script’,’https://assets.mailerlite.com/js/universal.js’,’ml’); ml(‘account’, ‘307601’);Continue reading