Sep/100
WordPress Plugin Development :: Getting the current plugin header information
You are developing a plugin and you wonder actually how you can access in the plugin itself the variables, which are shown in the plugin manager?
And why should we always redefine the information in the plugin itself?
We can easily use the WordPress function:
$plugin_data = get_file_data( __FILE__, $headers, 'plugin');
So here is an example how it works:
print_r($plugin_data);
echo '</pre>';
The result will be:
Array
(
[Name] => Pluginformation
[PluginURI] => http://ieservices.de/
[Version] => 1.0.0
[Description] => Simple plugin to display the plugins information
[Author] => Martin Andreas Woerz
[AuthorURI] => mailto:martin[at]ieservices[dot]de?subject=ieServices%20Plugin%20Pluginformation
[TextDomain] => pluginformation
[DomainPath] => plugins
[Network] => ieservices.de
)
Surely you can alter the headers, but those are the standards.
For example you can add an Author E-Mail address or a Authors Website
Related posts:
- Set up wordbook in 5 minutes :: WordPress is just so easy
- Firefox Plugin: SqliteManager as Standalone app!
You must be logged in to post a comment.
Recommend us!
Posts
ieservices@twitter
- Dropbox featuring jQuery UI CoverFlow 2.2 Demo now online http://t.co/ky91C8ZV 7 months ago
- whups: Steve Jobs #resigns from #apple http://t.co/sjMVMUv 8 months ago
- @Bloggonaut Ja, das wünsche ich auch! :) 11 months ago
- aaaaaaand effective management http://youtu.be/g-bFhIZx6vU :) 11 months ago
- Bad asset management http://youtu.be/vh0vCYMwNvw 11 months ago
