Skip to content

Commit

Permalink
Merge pull request #57 from mrengy/issue-56-Make_custom_fields_visibl…
Browse files Browse the repository at this point in the history
…e_for_all_users_in_admin

Make custom fields visible in admin
  • Loading branch information
mrengy committed Oct 9, 2020
2 parents 7bbd389 + f4e4f26 commit 7fde8bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wp-content/themes/neve-child/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,14 @@ function gtag(){dataLayer.push(arguments);}
<?php
}
}

//hide / show meta boxes when editing pages in admin https://wordpress.stackexchange.com/a/1402/7313

add_action('do_meta_boxes', 'neve_child_customize_meta_boxes');

function neve_child_customize_meta_boxes(){
remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' );
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'page', 'normal', 'high');
}

?>

0 comments on commit 7fde8bd

Please sign in to comment.