Git Product home page Git Product logo

luizbills / better-wordpress-admin-api Goto Github PK

View Code? Open in Web Editor NEW
78.0 9.0 9.0 1.87 MB

A better way to build settings pages for your plugins/themes.

License: GNU General Public License v2.0

CSS 0.67% JavaScript 4.10% PHP 95.23%
wordpress-development wordpress-php-library wordpress-admin-options wordpress wordpress-plugin-development wordpress-theme-development wordpress-admin wordpress-admin-panel

better-wordpress-admin-api's Issues

Accessing field values

I put the code to create admin inputs on my functions.php. The fields are displayed properly in backend. When i try to access the method get_field_value() in header.php, i got the excception

Trying to get value of an undefined field with id: 'f_phone'

. I debugged the _WP_Admin_Page instance and saw that the $fields array in the _WP_Admin_Page is empty. It seems that the values are filled AFTER i want to access them. How can i avoid that?

Redesign

Roadmap to v1.0.0

  • new project name (maybe WP Admin Fields)
  • use a PHP namespace
  • a API to create option pages and only text field by default
  • any other fields will be composer packages
  • extendable page and field layout (custom renderers)
  • examples in separated repository
  • install as composer package

Notes:

  • avoid break changes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.