[wp-hackers] how to do a single-instance widget with the new API

Andrew Nacin wp at andrewnacin.com
Wed Mar 17 17:08:43 UTC 2010


Before getting into multiple widget instances, I'd start with:
http://codex.wordpress.org/AJAX_in_Plugins

<http://codex.wordpress.org/AJAX_in_Plugins>Because:
define('DOING_AJAX', true);
include('../../../wp-config.php');
include(WP_CONTENT_DIR . '/../wp-admin/includes/admin.php');

Is not the right way to do it.


More information about the wp-hackers mailing list