Created
May 21, 2018 09:07
-
-
Save AlexandrKutsenko/4eadd897f3987240bb8070a82ad17aca to your computer and use it in GitHub Desktop.
Register portfolio fields post type
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
/* | |
* Register portfolio fields post type | |
*/ | |
function add_portfolio_img_post_type() { | |
register_post_type('add_portfolio_img', array( | |
'public' => true, | |
'labels' => array( | |
'name' => __('Картинки портфолио') | |
) | |
)); | |
} | |
add_action('init', 'add_portfolio_img_post_type'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment