Tags

/**
 * Plugin Name: 
 * Plugin URI: 
 * Description: 
 * Version: 
 * Author: 
 * Author URI: 
 * License: A "Slug" license name e.g. GPL2
 */

add_action( 'admin_menu', 'front_register' );

function front_register() {
	add_menu_page('FrontRegister', 'FrontRegister', 'manage_options', 'my-top-level-handle', 'back_register');
}

require_once(ABSPATH . WPINC . '/registration.php');
global $wpdb, $user_ID;

$result = mysql_query('ALTER TABLE wp_users ADD	user_lastname VARCHAR(60) AFTER user_login;');
$result = mysql_query('ALTER TABLE wp_users ADD user_address VARCHAR(250) AFTER display_name;');
$result = mysql_query('ALTER TABLE wp_users ADD	user_city VARCHAR(60) AFTER user_address;');
$result = mysql_query('ALTER TABLE wp_users ADD user_state VARCHAR(60) AFTER user_city;');
$result = mysql_query('ALTER TABLE wp_users ADD user_zip VARCHAR(60) AFTER user_state;');
$result = mysql_query('ALTER TABLE wp_users ADD	user_phone VARCHAR(60) AFTER user_zip;');
$result = mysql_query('ALTER TABLE wp_users ADD	user_category VARCHAR(60) AFTER user_phone;');

function back_register() {
	echo "hy";
}

function font_register() {
/*  Front Code Type Here */
}

add_shortcode( 'FrontRegister', 'font_register' );

// Shortcode [FrontRegister] 
Advertisements