0

Hi,

I am tryingto create the wordpress plugin and have written this code:

<?php
	/*
	Plugin Name: OSCommerce Productu rodymas
	Plugin URI: http://www.google.lt
	Description: Pluginas produktu roymui is OScommerce parduotuves
	Author: Darius
	Version: 1.0
	Author URI: http://www.google.lt
	*/
?>

<?php
add_action('admin_menu', 'my_plugin_menu');

function my_plugin_menu() {
	add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options');
}

function my_plugin_options() {
	if (!current_user_can('manage_options'))  {
		wp_die( __('You do not have sufficient permissions to access this page.') );
	}
	echo '<div class="wrap">';
	echo '<p>Here is where the form would go if I actually had options.</p>';
	echo '</div>';
}
?>

There should menu appear in the administration, but it doesn't. Where might be the problem?

1
Contributor
1
Reply
4
Views
6 Years
Discussion Span
Last Post by McLaren
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.