Need help with admin-page-framework?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

michaeluno
276 Stars 63 Forks Other 4.4K Commits 15 Opened issues

Description

Facilitates WordPress plugin and theme development.

Services available

!
?

Need anything else?

Contributors list

# 143,475
wordpre...
PHP
Shell
HTML
4350 commits
# 176,843
PHP
WordPre...
instagr...
instagr...
3 commits
# 671,073
wordpre...
PHP
Shell
HTML
2 commits
# 564,507
wordpre...
PHP
Shell
HTML
2 commits
# 30,396
woocomm...
flex
php7
symfony...
1 commit
# 780,100
wordpre...
PHP
Shell
HTML
1 commit
# 178,659
wordpre...
mjml
email-b...
C++
1 commit
# 459,204
WordPre...
PHP
wordpre...
Shell
1 commit

Admin Page Framework

Welcome to Admin Page Framework GitHub Repository

Admin Page Framework is an OOP based open source WordPress library that facilitates theme and plugin development.

Scrutinizer Code Quality

Admin Page Framework - Text, Password, and Textarea

Admin Page Framework - Selectors   Admin Page Framework - Image, Media Library, and File Uploads   Admin Page Framework - Taxonomies and Post Types Checklist   Admin Page Framework - Misc   Admin Page Framework - Form Input Verification   Admin Page Framework - Export and Import Options   Admin Page Framework - Contextual Help Pane   Admin Page Framework - Custom Post Type and Meta Box   Admin Page Framework - Meta Boxes in Pages Added by the Framework   Admin Page Framework - Form Fields in Taxonomy Page   Admin Page Framework - Form Sections in Tabbed Boxes and Repeatable Option   Admin Page Framework - Auto-complete Custom Field Type   Admin Page Framework - Widget Form Fields

Installation

There are mainly two ways to include the framework.

  • Use the framework loader plugin.

    • The latest development version can be found here.
    • The latest stable version can be downloaded here.
  • Use the generated framework files which can be downloaded via

    Dashboard
    ->
    Admin Page Framework
    ->
    Tools
    ->
    Generator
    .

For more details, see the Getting Started (

Dashboard
->
Admin Page Framework
->
Help
->
Getting Started
) of the admin pages of the loader plugin.

Examples

Create a Page

Admin Page Framework - Getting Started

include( dirname( FILE ) . '/library/apf/admin-page-framework.php' );

class APF extends AdminPageFramework {

public function setUp() {

    $this->setRootMenuPage( 'Settings' );    // where to belong
    $this->addSubMenuItem(
        array(
            'title'        => 'My First Page',
            'page_slug'    => 'myfirstpage'
        )
    );

}

/**
 * @callback        action      do_{page slug}
 */
public function do_myfirstpage() {
    ?>
    <h3>Say Something</h3>
    <p>This is my first admin page!</p>
    <?php }

} new APF;

Create a Form

Admin Page Framework - My First Form

include( dirname( FILE ) . '/library/apf/admin-page-framework.php' );

class APF_MyFirstFrom extends AdminPageFramework {

public function setUp() {

    $this->setRootMenuPage( 'My Settings' );    // create a root page 
    $this-&gt;addSubMenuItem(
        array(
            'title'        =&gt; 'My First Form',
            'page_slug'    =&gt; 'my_first_form'
        )
    );

}

/**
 * The pre-defined callback method that is triggered when the page loads.
 * @callback        action      load_{page slug}
 */     
public function load_my_first_form( $oAdminPage ) {

    $this-&gt;addSettingSections(    
        array(
            'section_id'    =&gt; 'my_first_text_section',    
            'page_slug'     =&gt; 'my_first_form',    
        )
    );

    $this-&gt;addSettingFields(
        array(    
            'field_id'      =&gt; 'text',
            'section_id'    =&gt; 'my_first_text_section',
            'title'         =&gt; 'Text',
            'type'          =&gt; 'text',
            'default'       =&gt; 123456,
        ),
        array(    
            'field_id'      =&gt; 'submit',
            'type'          =&gt; 'submit',
        )
    );

}

} new APF_MyFirstFrom;

See more code examples in

Dashboard
->
AdminPageFramework
->
Help
->
Examples
.

Resources

Getting Helped

Contributions

Anyone is welcome to contribute to Admin Page Framework. There are various ways you can contribute:

  • Report bugs.
  • Post ideas on enhancements.
  • Send us a Pull Request with your bug fixes and/or new features.
  • Write a custom field type.
  • Write test cases.
  • Improve the documentation.
  • Tweak the styling of the framework page elements.
  • Translate the language files in the language directory to your native language.
  • Possibly more.

Framework Core Development

See the contribution guideline.

Supporting Future Development

If you like the library, please rate and review it in the WordPress Plugin Directory. Also donation would be greatly appreciated. Thank you!

Donate with PayPal

Copyright and License

Admin Page Framework (Framework Files)

MIT license

Admin Page Framework - Loader (WordPress Plugin)

GPL v2

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.