Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Plugin Name: Plugin Name
* Description: Creating plugin settings with React JS.
* Version: 1.0.0
* Author: Sanjeev Aryal
* Author URI:
* Text Domain: simplicity
* Domain Path: /languages/
defined( 'ABSPATH' ) || exit;
add_action( 'admin_menu', 'prefix_register_settings_menu' );
function prefix_register_settings_menu() {
add_options_page( 'Plugin Settings', 'Plugin Name', 'manage_options', 'plugin-slug','plugin_settings_page' );
function plugin_settings_page() {
<h2><?php esc_html_e( 'General Settings', 'plugin-text-domain' ); ?></h2>
<form method="post">
<table class="form-table">
<tr valign="top" class="plugin-slug-option">
<th scope="row"><?php echo esc_html__( 'One of the input type settings', 'plugin-text-domain' ); ?></th>
<input style="width:auto" type="text" name="input_type_settings" />
<?php submit_button(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment