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?

I have simply not activated it, thats why no menu was there :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.