Untitled Snippet
sttsContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
sttsContinue reading
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
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
// filepath: Add this snippet in WP Code Snippets function custom_login_styles() { echo ‘ ‘; } add_action(‘login_head’, ‘custom_login_styles’);Continue reading
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