Title: Admin posts view USP button
Last modified: May 13, 2017

---

# Admin posts view USP button

 *  Resolved [unverifieduser](https://wordpress.org/support/users/unverifieduser/)
 * (@unverifieduser)
 * [9 years ago](https://wordpress.org/support/topic/admin-posts-view-usp-button/)
 * Hello,
 * Would it be possible for you to restrict the USP button to only show up on posts
   edit pages, because right now it shows up on all custom post types as well, unnecesarily.
   
   In `user-submitted-posts.php` around line 394-395 in a function `usp_outputUserSubmissionLink()`
   please change
 *     ```
       global $pagenow;
       if ($pagenow == 'edit.php') {
       ```
   
 * to be something more like
 *     ```
       $screen = get_current_screen();
       if ($screen->post_type == "post") {
       ```
   
 * Also I would really appreciate a more descriptive button than just “USP”, I often
   forget what it does.
 * Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [9 years ago](https://wordpress.org/support/topic/admin-posts-view-usp-button/#post-9128977)
 * Yes I will make sure that the USP button only is displayed on the Edit Post screens.
   Thank you for the suggestion. For the text of the button itself, did you have
   something in mind? Most users prefer it being as small and unobtrusive as possible(
   hence “USP” — only three letters).
    -  This reply was modified 9 years ago by [Jeff Starr](https://wordpress.org/support/users/specialk/).
      Reason: typo
 *  Thread Starter [unverifieduser](https://wordpress.org/support/users/unverifieduser/)
 * (@unverifieduser)
 * [9 years ago](https://wordpress.org/support/topic/admin-posts-view-usp-button/#post-9128985)
 * Thank you so much,
 * Well, maybe `Show USP` or even better `Show User Posts`, I can see how `Show 
   User Submitted Posts` can be a little obtrusive.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [9 years ago](https://wordpress.org/support/topic/admin-posts-view-usp-button/#post-9128997)
 * Maybe I can add a title attribute to the button that says “User Submitted Posts”
   or something.. I’ll take a look for the next update. Thanks again for the suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Admin posts view USP button’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/admin-posts-view-usp-button/#post-9128997)
 * Status: resolved