Tag enqueue
How To Customize The WordPress Login Page Logo And Styles
The default login page shows the WordPress logo and links to wordpress.org. A few hooks let you replace the logo, change the link and style the page to match your…
WordPress Conditional Tags Cheat Sheet With Examples
Conditional tags are functions that return true or false depending on the page being viewed. Use them to show or hide content, or to load scripts only where they are…
How To Enqueue A Javascript File In The WordPress Admin
Use the admin_enqueue_scripts hook to load JS in the dashboard. The $hook parameter lets you limit the script to specific admin screens.
How To Register A Gutenberg Block With Plain Javascript In WordPress
You can register a simple block without a build step. Load the script in the editor with the enqueue_block_editor_assets hook and declare the WordPress packages as dependencies.
How To Use The WordPress Rest Api With Javascript Fetch
Expose the REST root URL and a nonce with wp_localize_script(), then call any endpoint from JS.


