Action & Filter Hooks for User Submitted Posts

The free version of my WordPress plugin User Submitted Posts is better than ever, with a wealth of new action and filter hooks, enabling developers to customize everything from shortcode output to post data, alert messages and more. Drop in for a quick summary of all new USP hooks.

USP Filter Hooks

Summary of all filter hooks available in User Submitted Posts.

  • usp_post_status — filters new post status
  • usp_file_key — filters submitted image file key
  • usp_post_data — filters submitted post array before submission
  • usp_editor_settings — filters wp_editor() parameters
  • usp_error_message — filters the returned error message
  • usp_post_moderate — filters post status for moderated posts
  • usp_post_publish — filters post status for published posts
  • usp_post_approve — filters submitted post status
  • usp_post_author — filters return value for replace author
  • usp_form_shortcode — filters shortcode form output
  • usp_mail_subject — filters email alert subject
  • usp_mail_message — filters email alert message
  • usp_new_post — filters new post array for submitted post
  • usp_input_validate — filters settings input validation
  • usp_post_draft — filters Draft Post Status
  • usp_image_args — filters auto-display get_posts() args
  • usp_image_title — filters auto-display image title
  • usp_image_thumb — filters auto-display thumb-size image
  • usp_image_medium — filters auto-display medium-size image
  • usp_image_large — filters auto-display large-size image
  • usp_image_full — filters auto-display full-size image
  • usp_image_custom_size — filters size for custom image size
  • usp_image_custom — filters auto-display custom-size image
  • usp_email_custom_field — filters auto-display email address
  • usp_url_custom_field — filters auto-display submitted URL

USP Action Hooks

Summary of all action hooks available in User Submitted Posts.

  • usp_submit_success — action fired after successful post-submission
  • usp_submit_error — action fired for any post-submission error
  • usp_insert_before — action fired immediately after post insertion
  • usp_insert_after — action fired immediately before post insertion
  • usp_files_before — action fired immediately before file upload
  • usp_files_after — action fired immediately after file upload
  • usp_current_page — action fired on post-submission redirect

For advanced control over front-end form submission, check out the premium version of User Submitted Posts, USP Pro. It can do unlimited forms and features waay more functionality than the free version.

References and Resources