Last active
February 19, 2018 02:42
-
-
Save blakewilson/719eb1ec6dccf9917faf5159e345cef4 to your computer and use it in GitHub Desktop.
Video Background Pro - 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 Pro's post types | |
* | |
* @since 1.1.2 | |
* @author Push Labs | |
* @param array $post_types | |
* @return array Array of post types Video Background Pro should use | |
*/ | |
function themeprefix_vidbgpro_post_types( $post_types ) { | |
/** | |
* list the post types you would like Video Background Pro | |
* to use in the form of an array | |
*/ | |
$post_types = array( 'post', 'page' ); | |
return $post_types; | |
} | |
add_filter( 'vidbgpro_post_types', 'themeprefix_vidbgpro_post_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment