Skip to content

Instantly share code, notes, and snippets.

@adkorte
adkorte / adbox.php
Last active Sep 24, 2019
Ad Box: Simple way to mark your WordPress posts as ads with one click in your editor
View adbox.php
<?php
/** Ad Box **/
/** Author: Adrian Korte, @adkorte **/
/** add this snippet to your functions.php **/
// add a meta box to your edit/new post screen
add_action( 'add_meta_boxes', 'meta_ad_box_add' );
function meta_ad_box_add()
{