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…
increase upload memory
upload_max_filesize = 256M post_max_size = 256M max_execution_time = 300 />
Button - Add to cart to Buy Now
add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) { if ( 'Add to cart' == $text ) { $text…
Remove users from WP-JSON
Increase your site's security by hiding usernames from WP-JSON, that are otherwise exposed to the public.
Redirect To Referer After Login
/** * After a user logs in, redirect them back to the page they * were…
Sticky header
/*Sticky header*/ #site-header { position: fixed; top:0; opacity: 0.98; } #main { margin-top: 70px !important; /*…
Remove Default jQuery
// Remove default WordPress jquery wp_deregister_script( 'jquery' ); //Remove jquery migrate add_action( 'wp_default_scripts', 'remove_jquery_migrate' ); function…
Explicit Fixed Width and Height
Explicit Fixed Width and Height for images
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.…
Show local fonts in block editor
Display custom fonts in the backend editor
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
quiz
// setup console.log("running"); let q = 1; const submit = document.getElementById("next-button"); const question = document.getElementById("question"); //…