Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good use-case examples for all objects #1

Closed
4 tasks
sc0ttkclark opened this issue May 4, 2015 · 7 comments
Closed
4 tasks

Good use-case examples for all objects #1

sc0ttkclark opened this issue May 4, 2015 · 7 comments
Assignees
Labels
archived Issues from an archived version of the Fields API duplicate

Comments

@sc0ttkclark
Copy link
Owner

I'd like help on fleshing out the examples (what fields to register for each use-case) on each of the main objects:

  • Customizer
  • User profile

Additional examples for long-term reach:

  • Settings screens
  • Post editor
@sc0ttkclark sc0ttkclark self-assigned this May 4, 2015
@sc0ttkclark
Copy link
Owner Author

If you want to help here, you can do a PR on the README.md or provide a text-based list of object+fields+options on this thread.

@sc0ttkclark
Copy link
Owner Author

There may also be a use for an /examples/ folder, with .php files for each use-case, and the simplest forms for reference shown in README.md, the more in-depth examples in the .php files.

@KingYes
Copy link

KingYes commented May 28, 2015

What's about custom fields for Menus screen?

@helen
Copy link

helen commented May 28, 2015

Fair warning about menus: that screen currently sends ALL of the fields on the screen (including hidden ones, which are only hidden visually) as POST data, which currently causes serious problems with large menus.

@sc0ttkclark
Copy link
Owner Author

I have hit this same wall with too many fields being submitted to PHP because of the default max_input_vars.

In the past, I've had to use JS to create JSON objects for each "row", in this case that'd be menu items. Anyways, still a significant hurdle to get past for Menu items.

@celloexpressions
Copy link

Menus will no longer be an issue in a matter of weeks, hopefully :) I think we might actually wait on allowing any field extensibility there in the meantime so that we can leverage this when it's ready.

http://github.com/voldemortensen/menu-customizer/

I'd also love to be able to use this when creating widgets, not sure about the feasibility of that though.

@sc0ttkclark sc0ttkclark modified the milestone: Fields API 0.1 Sep 29, 2015
@sc0ttkclark
Copy link
Owner Author

Closing in favor of #22

@sc0ttkclark sc0ttkclark added the archived Issues from an archived version of the Fields API label Aug 2, 2023
sc0ttkclark pushed a commit that referenced this issue Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archived Issues from an archived version of the Fields API duplicate
Projects
None yet
Development

No branches or pull requests

4 participants