HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /home/kashmira/.trash/stylo-core/admin/settings.php
<?php
/**
 * custom option and settings
 */
function stylocore_settings_init() {
    
    // Register new settings for "License Activation" section.
    register_setting( 'stylo-settings', 'stylocore_license_data', ['default' => array()]);
    

    // License Activation Section
    add_settings_section(
        'stylocore_section_form',
        __( 'License Activation', 'stylo-core' ),
        'stylocore_section_form_callback',
        'stylo-settings'
    );


    // License Data
    add_settings_field(
        'stylocore_license_data',
        'License Information',
        'stylocore_license_data_field_cb',
        'stylo-settings',
        'stylocore_section_form'
    );

}
add_action( 'admin_init', 'stylocore_settings_init' );

/**
 * Section Callback Functions.
 */
function stylocore_section_form_callback( $args ) {
    return;
}

//Top Level Administration Menu
function stylo_register_menu_page() {
    add_menu_page(
        'STYLO THEMES SETTINGS',
        'StyloThemes',
        'manage_options',
        'stylo-settings',
        'stylocore_options_page_html',
        'dashicons-admin-generic', 0 );
}
add_action('admin_menu', 'stylo_register_menu_page');