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. Feel free to use what you like, and point me to some other snippets or references.

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

Removing autop, and when you can’t remove it

The autop function can be very annoying when you’re trying to format content. But some plugins depend on autop to work, such as the checkout function [...]
eCommerce, PHP, WP/CP | Type: PHP