how i can add checkbox and a save button in my wordpress plugin to activate and deactivate it here is my code:
<?php
/*
Plugin Name: My Plugin
Description: A test plugin
Author: Marco
Version: 1.0
*/
add_action('admin_menu', 'test_plugin_setup_menu');
function test_plugin_setup_menu(){
add_menu_page( 'Test Plugin Page', 'Test Plugin', 'manage_options', 'test-plugin', 'test_init' );
}
function test_init(){
echo "<h1>My Plugin Info</h1>";
}
?>
thanks in advance.
Aucun commentaire:
Enregistrer un commentaire