Home Forums Plugin Support WP User Frontend Pro WPUF Form and Custom Fields in Post Edit

This topic is: not resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Daniel 4 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #12888

    k69rocks
    Participant
    Post count: 27

    Hi Tareq,

    is there a way to remove WPUF Form and WPUF Custom Fields from the Screen Option in the backend (for non-admin users)?

    I have posting in the Front-end but also have WooCommerce shop vendors in the backend adding products that don't need to see that stuff.

    Looked everywhere for setting default screen options for users (as plugin as well) to no avail.

    Thank you!
    Richard

    #12889

    k69rocks
    Participant
    Post count: 27

    Ok…if someone needs a solution, here ya' go:

    http://wordpress.org/plugins/screen-options-and-help-show-customize/

    ๐Ÿ™‚

    There might be a simpler way direct in WPUF Pro though…

    #12890

    Tareq Hasan
    Keymaster
    Post count: 2831

    You could turn off every single meta box from the screen options.

    #12891

    k69rocks
    Participant
    Post count: 27

    And this would reflect is the options for every non-admin users?

    Then I must be a little silly. ๐Ÿ˜‰

    #12892

    k69rocks
    Participant
    Post count: 27

    *in*

    In other words, they wouldn't be visible for them?

    #12935

    Tareq Hasan
    Keymaster
    Post count: 2831

    That would be based on every user. So may be it won't be good for you. So you are better with that solution if that works for you.

    #12974

    k69rocks
    Participant
    Post count: 27

    Thanks, Tareq.

    I ended up using Adminimize. I needed to add the wpuf form tag. ( #wpuf-select-form )

    #23110

    Daniel
    Member
    Post count: 8

    I would like to lift this question again.
    I have a WordPress Multisite, with a custom theme where I also add custom post types with their own custom meta boxes (added via the meta-box plugin).
    However, a bug I noticed was that content added via the front-end ran into some problems when edited via the backend. I had The ‘WPUF Custom Fields' turned off in the screen options, but the problem seem to lie in the duplication of my custom fields ID attributes. They are added twice – once by my functions.php and then again by the WPUF Custom fields.

    On content created via backend, I of course do not have these issues.

    Is there anywhere in the plugin where I can turn off the creation of the backend meta-box ‘WPUF Custom Fields'? And can't this be an option in the WPUF settings in the next version? I think this could be valuable for us who have other plugins or who code our custom post types and meta boxes by hand.

    I run WPUF Pro 2.1.10

    Greatful for any reply, and keep up the good work with this very solid plugin.

    #23115

    Daniel
    Member
    Post count: 8

    OK, after a bit of experimentation, I found the function add_meta_boxes() in /admin/posting.php. (row 51-57)

      function add_meta_boxes() {
     /*       $post_types = get_post_types( array('public' => true) );
    
            foreach ($post_types as $post_type) {
                add_meta_box( 'wpuf-custom-fields', __( 'WPUF Custom Fields', 'wpuf' ), array($this, 'render_form'), $post_type, 'normal', 'high' );
            }*/
        }

    Commenting out the contents of this function helped remove the generated metabox WPUF Custom Fields from backend, and the conflict was resolved.

    Still, would be nice to have this as an option in the settings though.

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

The topic ‘WPUF Form and Custom Fields in Post Edit’ is closed to new replies.