Support » Plugin: Video Background » add to custom post types?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Blake

    (@blakedotvegas)

    Hi jynk,

    Currently only the pro version has this ability through a filter (As of 1.1.2). However, I plan on adding this same functionality to Video Background once I find the time. Should not be too long, maybe a week or two (don’t quote me on that).

    Have a great day!

    Regards,
    Blake

    Plugin Author Blake

    (@blakedotvegas)

    Hi jynk,

    In version 2.5.7 you will now be able to add custom post types! You can do this using a filter. Please add the function below to your functions.php file.

    /**
     * Define Video Background's post types
     *
     * @since 2.5.7
     * @author Blake Wilson
     * @param array $post_types
     * @return array Array of post types vidbg 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' );

    Change the $post_types param as needed.

    I hope this helps!

    Regards,
    Blake

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add to custom post types?’ is closed to new replies.