Web Dev Snippets

A collection of (mostly) WordPress/ClassicPress-related snippets and references I’ve found useful and worth keeping where I can find them. 
NOTE: Some of these snippets are old and may be outdated. Feel free to use what you like, and point me to better snippets or references.

RankMath Functions

Move RankMath metabox to bottom of the edit screen //change the metabox display location to bottom function rank_math_change_metabox_priority() { return 'low'; } add_filter( 'rank_math/metabox/priority', 'rank_math_change_metabox_priority' ); [...]
PHP, WP/CP | Type: PHP

Remove Items from WP/CP Admin Bar

// Remove items from the admin bar function remove_from_admin_bar($wp_admin_bar) { /* * Placing items in here will only remove them from admin bar * when viewing [...]
PHP, WP/CP | Type: PHP

Remove Metabox from Template

When you need a particular metabox to disappear from a particular template.
Javascript, WP/CP | Type: Javascript