Created
August 6, 2017 21:28
-
-
Save blakewilson/295a7ef6bd639c299dbe2b2803e77c89 to your computer and use it in GitHub Desktop.
Video Background - Post Types Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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