About

Amateur hobbyist

28 Snippets
10+ Favourites
10+ Downloads

Dynamic Shortcode Execution

Dynamic shortcode execution with block editor support. Allows shortcodes to execute everywhere, even within paragraph blocks.

Add dynamic copyright year (center) to footer

This shortcode will automatically add "Copyright © 2024" (or the current year) to the bottom of…

Dynamic logo sizing

Fix the issue where changing the logo size in the block editor breaks it. Dynamically adjust…

fullPage.js

Register and Enqueue fullPage.js library

WPCode Admin Number of Snippets (copy)

Change the number of snippets displayed in the admin list using a filter.

masonry.js

Register and Enqueue masonry.js library for grid layouts

fontfaceObserver.js

Detect if web fonts are available

Add Theme Supports

Reference: https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#opt-in-features

Bootstrap 5

// Add custom scripts function add_custom_script_bootstrap5() { wp_register_script( 'bootstrap5_js', 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js', array(), '5.3.3', true ); wp_enqueue_script( 'bootstrap5_js'…

Typography Enqueue

function typography_enqueue_styles() { // Enqueue Typeboost.css from Cloudflare CDN wp_enqueue_style('typeboost-css', 'https://cdnjs.cloudflare.com/ajax/libs/typeboost/1.0.0/typeboost.css', array(), '1.0.0'); // Enqueue webfontloader.js…

Hide All Admin Notices in Sidebar

Hides all admin notices in a collapsible sidebar. AI generated code. Use with caution.

Admin Functions for posts.

Make it easier to edit posts when viewing archives or single pages. Add page slug to…

1 2 3