geminilabs

[site-reviews] enable the custom fields metabox

Feb 21st, 2019 (edited)
491
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data Copied