Home Forums Plugin Support WP User Frontend (Free Version) Assign Editing Form to User Role

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14896

    sociallyfamous
    Participant
    Post count: 91

    Hello,

    I would like posts from a specific WP user role to be always associated with a specific editing form without having to assign it manually for each post for a specific user role. Is there an function I have missed or could you suggest any hack?

    Feraz

    #14915

    Tareq Hasan
    Keymaster
    Post count: 2831

    Use this hook http://docs.wedevs.com/wpuf_add_post_after_insert/.

    Just update the meta key _wpuf_form_id with the form id you want to assign.

    [php]update_post_meta( $post_id, ‘_wpuf_form_id', 333);[/php]

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

The topic ‘Assign Editing Form to User Role’ is closed to new replies.