geminilabs

[site-reviews] enable the custom fields metabox

Feb 21st, 2019 (edited)
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /**
  2.  * Enables the Custom Fields metabox for reviews
  3.  *
  4.  * To use this snippet, paste it in your active theme's functions.php file.
  5.  *
  6.  * @return void
  7.  */
  8. add_action('admin_init', function () {
  9.     add_post_type_support('site-review', 'custom-fields');
  10. });
Add Comment
Please, Sign In to add comment