Home Forums Plugin Support WP User Frontend Pro Removing WPUF Post Lock from User Profile

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  rocketseven 5 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #15238

    Post count: 4

    Hey Tareq,
    This is backend.
    How would I go about removing the WPUF Post Lock fields injected into a user profile.
    I used my usual methods of remove_action but am I missing something.
    Have I got the global correct?

    global $wpuf_subscription;
    remove_action( 'show_user_profile', array($wpuf_subscription, 'post_lock_form') );
    remove_action( 'edit_user_profile', array($wpuf_subscription, 'post_lock_form') );

    Tareq Hasan
    Post count: 2831

    It's not coming from WPUF_Subscription class, but from WPUF_Admin_Posting_Profile. Removing any action within a class is always a trouble. If the WPUF_Admin_Posting_Profile was in a global variable, you could do that easily using your method. But as it's not in any global variable, that would be very difficult to do.


    Post count: 4

    Hey Tareq,
    Thanks for letting me know.
    I guess i'll have to resort to some hacky javascript solution for now 🙁


    Post count: 4

    If it helps anyone else…

    function hide_wpuf_lock_from_usertable() { ?>
    <script type="text/javascript">jQuery(document).ready(function($) { $('form#your-profile > h3:eq(4)').hide(); $('form#your-profile > table:eq(4)').hide(); $('form#your-profile').show(); });</script>
    <?php }

    Be sure to change the value of eq (in both instances) to the position it lands within your user profile screen.


    Post count: 34

    Hello Jonathan and thank you for your help on this.

    As im not a programer i dont understand what do i heve to change in your code in order to remove the WPUF post lock section from user profile page in wordpress backend.

    I´ve tryed your code in functions.php but it removes all WPUF fields…

    Can you please give me a hint?

    Thank you so much

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Removing WPUF Post Lock from User Profile’ is closed to new replies.