How to rename WordPress plugin?
I have already crated a plugin for WordPress and I was wondering If it is possible to change its' name.
ie: Lets say I have the plugin that It's definition looks like that
/*
Plugi开发者_开发技巧n Name: Current plugin name
Plugin URI: http://www.plugin.url
Description: Some description about that plugin
Author: The author name
Version: 1.0.0
Author URI: http://www.author.url
*/
Is it posible to create a new plugin version that will looks like that:
/*
Plugin Name: New plugin name
Plugin URI: http://www.plugin.url
Description: Some description about that plugin
Author: The author name
Version: 2.0.0
Author URI: http://www.author.url
*/
Focus on plugin name
And after that, when the plugin will be installed from the WordPress repository, will that affect the plugin?
Yeah, you are on correct track, but you need to change name before installing plugin.
You can change the name inside your plugin file in the 'Plugin Name' field. This will change the display in the UI.
However, you cannot change the URL for the plugin on Wordpress.org.
I tried by changing :
/*
Plugin Name: My new name
*/
but it didn't work. Then I tried by changing the name in readme.txt :
/*
=== My new name ===
*/
And it worked for me !
精彩评论