Custom Registration Fields
Add fields to the registration form.
Admin Bar - Updates
Show updates in Admin Bar
Add WPCode Custom Field Smart Tag
Add a custom smart tag for the WPCode scripts metabox that outputs the value of a…
Button - Add to cart to Buy Now
add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) { if ( 'Add to cart' == $text ) { $text…
Sticky header
/*Sticky header*/ #site-header { position: fixed; top:0; opacity: 0.98; } #main { margin-top: 70px !important; /*…
Redirect To Referer After Login
After a user logs in, redirect them back to the page they were on right before…
Remove Default jQuery
// Remove default WordPress jquery wp_deregister_script( 'jquery' ); //Remove jquery migrate add_action( 'wp_default_scripts', 'remove_jquery_migrate' ); function…
Estimated reading time
// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…
Display Post and Page IDs in WordPress Columns
This PHP code enables you to display the IDs of posts and pages within WordPress columns.…
display user name in a menu
/** * Show a user's display name/user name in a WordPress menu. * Once this code…
Explicit Fixed Width and Height
Explicit Fixed Width and Height for images
Show local fonts in block editor
Display custom fonts in the backend editor
Remove users from WP-JSON
Increase your site's security by hiding usernames from WP-JSON, that are otherwise exposed to the public.
Add a color picker field in Formidable Forms
Install this snippet and add 'frm-color-picker' in the 'CSS Layout Classes' setting for a field.