Snippets: WP/CP

Force Private Post

Have used this for user-created content that is not for public.
Custom Admin, Users, WP/CP | Type: PHP

Incorporating Dashicons into Content and Templates

Two approaches for adding dashicons in HTML, using WordPress native CSS. <h2 class="dashicons-before dashicons-smiley">A Cheerful Headline</h2> <h2><span class="dashicons dashicons-smiley"></span> A Cheerful Headline</h2> Both would appear like [...]
WP/CP | Type: PHP

Move Yoast Metabox to Bottom

Yoast Metabox is huge, and it gets in the way of a lot of stuff. Move it to the bottom of the edit screen with this handy snippet.
WP/CP, Yoast | Type: PHP

Multiple Templates for Custom Post Type

Number of possible solutions; have not tested any of them yet. Maybe trying to make this too complicated: what about serving different template parts based on [...]
CPT, WP/CP | Type: PHP

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept