Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Websiteguy on "Settings page truble"

$
0
0

I am trying to make a plugin with a settings page, but when I upload it there was an error.

This is the HTML:

*

Plugin Name: Stops Core, Theme, and Plugin Updates

Version: 0.2

Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
Author: <a href="http://profiles.wordpress.org/kidsguide"><a href="http://profiles.wordpress.org/kidsguide">Websiteguy</a></a>

Description: A Simple Wordpress Plugin That Deletes All Updating of Plugins, Themes, and Even The Wordpress Core.

Compatible with WordPress 3.6+.

*/

<?php
function msp_add_admin_menu() {
add_options_page(
'Stops Updates Page',
'Stops Updates',
'manage_options',
'msp-stops-updates-page',
'msp_display_settings_page'
);
if(isset($_POST['msp_save'])) {
add_action("admin_head-$page",'msp_save_settings_handler');
}
}
add_action('admin_menu','msp_add_admin_menu');

function edit_theme_settings() {
    if ( get_option('sold_text') == true ) { $display = 'checked'; }
    else { $display = ''; }
    update_option( 'sold_text', $display );
?>

<p>Check if you don't won't updates of it</p> 

<input type="checkbox" name='Plugin_Updates' id='Plugin' value="1" <?= checked( get_option('Plugin'), 1, false );?> />
<input type="checkbox" name='WordPress_Core_Updates' id='Core' value="1" <?= checked( get_option('Core'), 1, false );?> />
<input type="checkbox" name='Theme_Updates' id='Theme' value="1" <?= checked( get_option('Theme'), 1, false );?> />

Viewing all articles
Browse latest Browse all 8245

Trending Articles