Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function allowEmptyPostContent() {
- return false;
- }
- function removeDescriptionRequirement() {
- // Only proceed if the form has been submitted
- if (empty($_POST)) return;
- // post_content is checked to ascertain if it is empty or not - we'll
- // workaround this by filling the relevant posted fields with whitespace
- $_POST['post_content'] = ' ';
- $_POST['tcepostcontent'] = ' ';
- // Temporarily allow empty post content
- add_filter('wp_insert_post_empty_content', 'allowEmptyPostContent');
- }
- // Lets remove the requirement for the Community/Add description field
- add_action('tribe_ce_before_event_submission_page', 'removeDescriptionRequirement');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement