Skip to content

Instantly share code, notes, and snippets.

@blakewilson
Created July 15, 2017 22:01
Show Gist options
  • Save blakewilson/224f8fe14f73beb61e2fb70976f0455d to your computer and use it in GitHub Desktop.
Save blakewilson/224f8fe14f73beb61e2fb70976f0455d to your computer and use it in GitHub Desktop.
Video Background Pro - Metabox Priority Filter
<?php
/**
* Define Video Background Pro's metabox priority
*
* @since 2.0.0
* @author Push Labs
* @uses apply_filters()
* @return string The location of the metabox used by WordPress
* @link https://developer.wordpress.org/reference/functions/add_meta_box/
*/
function themeprefix_vidbgpro_metabox_priority( $priority ) {
/**
* The metabox priority. For more information refer to:
* @link https://developer.wordpress.org/reference/functions/add_meta_box/
*/
$priority = 'high';
return $priority;
}
add_filter( 'vidbgpro_metabox_priority', 'themeprefix_vidbgpro_metabox_priority' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment