Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('rcl_default_public_form_fields','notes_remove_publicform_fields',10,2);
- function notes_remove_publicform_fields($fields, $post_type){
- if($post_type != 'notes') return $fields;
- $remove = array(
- 'post_title',
- 'post_excerpt',
- 'post_uploader'
- );
- foreach($fields as $k => $field){
- if(in_array($field['slug'], $remove)){
- unset($fields[$k]);
- }
- }
- return $fields;
- }
Add Comment
Please, Sign In to add comment