What do you want to save?
Add Code snippet
New code examples
-
-
PHP 2021-09-01 03:37:02
extend woocommerce user fields edit-account
// Add the custom field "favorite_color" add_action( 'woocommerce_edit_account_form', 'add_favorite_color_to_edit_account_form' ); function add_favorite_color_to_edit_account_form() { $user = wp_get_current_user(); ?> <p cl... Add solution -
Javascript 2021-08-31 18:10:01
javaScript disable submit button until form is fully validated
function fieldValidation() { var name = document.forms['RegForm']['Name'].value; var address = document.forms['RegForm']['Address'].value; var email = document.forms['RegForm']['EMail'].value; var password = document.forms['RegForm']['Password'].value; v... Add solution -
Shell/Bash 2021-08-29 09:43:02
vim insert text at the the beginning of multiple lines
# Basic syntax: # Insert text in front of every line in the file: :%s!^!text_to_insert! # Insert text in front of specific lines (e.g. for commenting out code): 1. Press ESC to ensure youre in command mode 2. Use CTRL+v to enter visual block mode 3. Move... Add solution