“Donate to this plugin” for WordPress.org Plugin Authors

It is read from the infos on your plugins readme.txt. Example from my Default Values for Attachments === Plugin Name === Contributors: moraleida.me Donate link: http://moraleida.me/ Tags: attachments, default values, caption, title, description Requires at least: 2.5 Tested up to: 3.3.2 Stable tag: 0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

How to make sure a wp-cron job runs

Yes. No, because the scheduled job hasn’t reached the time yet. Yes, but not until 7:03pm. Basically, any hit to the site after the scheduled time will cause the queued job to run. The WP_Cron is a “best effort” system, not an exact timer. This is generally good enough though, since if nobody’s visiting the … Read more

Show a confirm message before plug-in activation

You can read more about the details of activation on this answer. Basically you need to hook a function to register_activation_hook() – assuming, that this is from within your main plugin folder and not a subfolder: register_activation_hook( __FILE__, ‘on_activation’ ); function wpse65190_on_activation() { // Add an admin notice: add_action( ‘admin_notices’, ‘wpse65190_on_activation_note’ ); // Then you … Read more

X-Pingback and XMLRPC

I think that when talking about XMLRPC in the context of wordpress you usually mean to talk about authoring tools utilizing the XMLRPC protocol, and not about the protocol in general. In case of pingbacks and trackbacks the XMLRPC protocol is utelized to send content (comment) to your site by some other entity which is … Read more

How to run Two WordPress blogs with different themes and with single database and same content

I’ll try to explain how it might be done, but not sure it will work: Install 2nd website with single db (2 copies). Create new table in your db. Call it wp_options2 and copy everything from wp_options into the new table in second install in wp-config.php, before if ( !defined(‘ABSPATH’) ) add define( ‘M7_OPTIONS_TABLE’, ‘wp_options2’ … Read more

How do I disable a plugin enforced by my host (in mu-plugins)?

You disable mu-plugins by removing the plugin file from the mu-plugins directory. They are outside the normal plugin activation/deactivation cycle “and cannot be disabled except by removing the plugin file from the must-use directory, which is found in wp-content/mu-plugins by default.” I assume you don’t have the authority to remove the files. The plugins may … Read more

Add content to /wp-admin/plugin-install.php admin screens

Without extending the class, what can be done is adding a Custom Action Link: add_filter( ‘plugin_install_action_links’, ‘action_links_wpse_119218’, 10, 2 ); function action_links_wpse_119218( $links, $plugin ) { if( isset( $_GET[‘tab’] ) ) { switch( $_GET[‘tab’] ) { case ‘featured’: $links[‘my-action’] = “Tested up to <a href=”#”>{$plugin[‘tested’]}</a>”; break; case ‘popular’: $links[‘my-action’] = “Requires <a href=”#”>{$plugin[‘requires’]}</a>”; break; case … Read more

How do I extend one plugin I’m writing with another I’m writing using classes?

If the classes are not in the same file, you’ll need to require it into the child class ( myCustomClass ). Are you doing that? Example : //get the base class if(!class_exists(‘MyParentClass’)) { require_once plugin_dir_path( __FILE__ ) . ‘/_inc/MyParentClass.php’; } /** * Class Definition */ class MyChildClass extends MyParentClass{ // class definition }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)