Category: Login
MemberPress: Change Username Field’s Placeholder and/or Label of the Field on Login Page
document.addEventListener(‘DOMContentLoaded’, function() { // Select the input element by its id var usernameInput = document.getElementById(‘user_login’); // Check if the element exists to avoid any potential JavaScript errors if (usernameInput) { // Change the placeholder text usernameInput.placeholder = ‘Nome utente o…Continue reading
@
Stripe 2 Registration Form Update
add_action(‘frm_after_create_entry’, ‘link_fields’, 1123, 22); add_action(‘frm_after_update_entry’, ‘link_fields’, 2, 146); function link_fields($entry_id, $form_id){ if($form_id ==22 global $wpdb; $first_field = $_POST[‘item_meta’][22]; $user = $wpdb->get_var($wpdb->prepare(“SELECT user_id FROM “. $wpdb->prefix .”frm_items WHERE id=%d”, $entry_id)); $entry_ids = $wpdb->get_col(“Select id from “. $wpdb->prefix .”frm_items where form_id=’2′ and…Continue reading
Untitled Snippet
Login styling
// filepath: Add this snippet in WP Code Snippets function custom_login_styles() { echo ‘ ‘; } add_action(‘login_head’, ‘custom_login_styles’);Continue reading
Create An Admin – SQL Query
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`,`user_status`)VALUES (‘<strong>wpstaging</strong>’, MD5(‘password123’), ‘Rene Hermenau’, ‘[email protected]’, ‘0’); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)VALUES (NULL, (Select max(id) FROM wp_users),’wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);Continue reading
Untitled Snippet
Disable XML-RPC (copy)
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
Untitled Snippet
[mwai_chatbot id=”default”]Continue reading