WPUF Form and Custom Fields in Post Edit

This topic contains 8 reply and 3 voices, and was last updated by Daniel 10 years, 4 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
November 26, 2013 at 9:18 pm 12888
Daniel 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
November 26, 2013 at 9:36 pm 12889
k69rocks k69rocks

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

Screen Options and Help Show Customize

🙂

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

November 26, 2013 at 10:02 pm 12890
Tareq Hasan Tareq Hasan

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

November 26, 2013 at 10:03 pm 12891
k69rocks k69rocks

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

Then I must be a little silly. 😉

November 26, 2013 at 10:04 pm 12892
k69rocks k69rocks

*in*

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

November 28, 2013 at 12:31 am 12935
Tareq Hasan Tareq Hasan

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.

November 28, 2013 at 11:36 am 12974
k69rocks k69rocks

Thanks, Tareq.

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

July 7, 2014 at 4:00 pm 23110
Daniel Daniel

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.

July 7, 2014 at 5:21 pm 23115
Daniel Daniel

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 8 Posts - 1 through 8 (of 8 total)