Discussion on Xbox Framework - Create Meta boxes, Theme Options & Admin Pages for WordPress

MaxLopez

MaxLopez supports this item

Supported

23 comments found.

Hi,

I have a question regarding https://codecanyon.net/item/xbox-framework-create-meta-boxes-theme-options-admin-pages-for-wordpress/19250995.

Can I create a free WordPress plugin using the xbox framework and upload it to wordpress directory by just buying 1 license of this framework?

Sorry, got the answer from https://codecanyon.net/licenses/standard.

Regards,

Hi,

This is my code: <?php require_once( 'wpparseCore/xbox.php' ); add_action( 'xbox_init', 'wppwb_admin_page'); function wppwb_admin_page(){ $wppwb_options = array( 'id' => 'wppwb-admin-page',//It will be used as "option_name" key to save the data in the wp_options table 'title' => 'Test', 'menu_title' => 'Test', 'skin' => 'teal', 'header' => array( 'icon' => '<img src="'.XBOX_URL.'/img/xbox-light.png" />', 'desc' => 'Test', )); $xbox = xbox_new_admin_page( $wppwb_options ); $xbox->add_field(array( 'id' => 'custom-switcher', 'name' => __( 'custom', 'textdomain' ), 'type' => 'switcher', 'default' => 'no', 'options' => array( 'on_value' => 'yes',//Default: on 'off_value' => 'no'//Default: off ) )); // Getting Values $xbox = Xbox::get( 'wppwb-admin-page' ); $value = $xbox->get_field_value( 'datetisdsdme-switcher' ); // If Date Time Switch in On if($value == 'yes') { // do something } } ?> But I want to get fields values outside of function wppwb_admin_page() independently, so I could require_once a file which has a class. I want this code: // Getting Values $xbox = Xbox::get( 'wppwb-admin-page' ); $value = $xbox->get_field_value( 'datetisdsdme-switcher' ); // If Date Time Switch in On if($value == 'yes') { // do something }

outside of function wppwb_admin_page().

Is it possible?

of course, read the “Get field values for Admin Pages” section of this page:

http://xboxframework.com/documentation/getting-started/create-fields-and-get-field-values/

Hello, you expect to range field?

You could use two number fields.

by
by
by
by
by
by