Created
August 9, 2017 19:45
-
-
Save thomasplevy/0b8a8576801176c2ab6fb9dcb203078f to your computer and use it in GitHub Desktop.
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 // don't copy this line to your functions.php file | |
/** | |
* Add LaunchPad Layout Settings to a custom post type | |
* @param array $post_types array of default post types | |
* @return array | |
*/ | |
function add_lp_mb_for_my_post_type( $post_types ) { | |
$post_types[] = 'my_custom_post_type'; | |
return $post_types; | |
} | |
add_filter( 'launchpad_layout_settings_metabox_post_types', 'add_lp_mb_for_my_post_type', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment