Skip to content

Instantly share code, notes, and snippets.

@blakewilson
Created August 6, 2017 21:28
Show Gist options
  • Save blakewilson/295a7ef6bd639c299dbe2b2803e77c89 to your computer and use it in GitHub Desktop.
Save blakewilson/295a7ef6bd639c299dbe2b2803e77c89 to your computer and use it in GitHub Desktop.
Video Background - Post Types Filter
<?php
/**
* Define Video Background's post types
*
* @since 2.5.7
* @author Push Labs
* @param array $post_types
* @return array Array of post types Video Background should use
*/
function themeprefix_vidbg_post_types( $post_types ) {
/**
* list the post types you would like Video Background
* to use in the form of an array
*/
$post_types = array( 'post', 'page' );
return $post_types;
}
add_filter( 'vidbg_post_types', 'themeprefix_vidbg_post_types' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment