Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Create ACF setting page under Events CPT menu
*
* @since 1.0.0
*/
if ( function_exists( 'acf_add_options_sub_page' ) ){
acf_add_options_sub_page(array(
'title' => 'Event Settings',
'parent' => 'edit.php?post_type=events',
<?php
// Bokka Utilities must be loaded before all other mu-plugins
// as it contains global variables used elsewhere.
require WPMU_PLUGIN_DIR.'/bokka-wp-utilities/bokka-utilities.php';
require WPMU_PLUGIN_DIR.'/bokka-wp-mvc/bokka-mvc.php';
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position