What are the package and subpackage comment for?
These are PHPDoc tags – used to generate meaningful (and automated) code documentation
These are PHPDoc tags – used to generate meaningful (and automated) code documentation
Have you seen http://wordpress.org/extend/plugins/wp-native-dashboard/? I think it does exactly what you are asking. Also ‘interesting’ is http://wordpress.org/extend/plugins/in-their-language/ which attempts to set the locale automatically based n browser settings.
better is, you use the functions of WP for this, a example for multilanguage: add_action( ‘admin_enqueue_scripts’, ‘add_scripts’ ); function add_scripts($where) { wp_localize_script( ‘post2media’, ‘post2media_strings’, $this->localize_vars() ); } function localize_vars() { $strings = array( ‘btntext’ => __( ‘Link with post’, INPSYDE_P2M_TEXTDOMAIN ), ‘txtallnone’ => __( ‘Include in gallery:’, INPSYDE_P2M_TEXTDOMAIN ), ‘txtall’ => __( ‘All’, INPSYDE_P2M_TEXTDOMAIN ), … Read more
As long as you use a valid WordPress.org username in the Contributors: tag in readme.txt, then yes: once the readme.txt is parsed by Extend/SVN, then the specified username automagically has SVN-commit access to the Plugin. Note: I know that it works for the Contribuors: tag, as I am such a contributor on a couple Plugins. … Read more
Warning: This is not legal advice. The only definitive answer you can get on a legal subject is from a lawyer trained in that area. If your defence in court is that you read a stack exchange answer that will not hold up. Having said that I’ll try to answer using information from the FSF … Read more
Perhaps this doesn’t fully answer your question, but the table rate shipping plugin does give you the option to set a priority for a particular rate. Furthermore, this discussion gives a lot of hints as to where you could look for solutions
Like Rarst answered you can really do that without editing core files or remove the page attributes metabox and create your on using the same code with a bit of modification. the code below is the code for the /admin/include/meta-boxes.php and i added the a comment to show where your extra page template options would … Read more
For the benefit of others who find this page, I suggest those wishing to provide their own updates outside the official WP repository check out this project on GitHub, that demonstrates the functionality: https://github.com/jeremyclark13/automatic-theme-plugin-update
How does WordPress determine “the main plugin file” ? It is the file in your plugin that contains the plugin header comment /** * Plugin Name: A fresh example * Plugin URI: http://example.com * Description: Foo makes a bar * Version: 2012-06-14.1426 * Author: John Doe * Author URI: http://example.com * TextDomain: your_textdomain * License: … Read more
Turns out I solved my own question with help from a colleague. The two filters that get called after media is uploaded or when media is being edited are; ‘add_attachment’ and ‘edit_attachment’. Here is the code I am using, I then check to see if the attachment is an image (code omitted from example). function … Read more