Using jQuery thickbox built in Wordpress
Рубрики: Javascript, PHP, Wordpress, jQuery on Oct.17, 2008
To cite an example of how to use the built-in thickbox wordpress when you write a plug-in.
First step: Create a folder “wp_plugin” in the folder “plugins”
Second step: Create a file with the following code ajax.php
- <?php
- define("VP","wp_plugin");
- define("ABSPATH", str_replace("wp-content/plugins/".VP, "", dirname(__FILE__)));
- //The inclusion of these files allows full use of all functions of wordpress
- require_once(ABSPATH.'wp-load.php');
- require_once(ABSPATH.'wp-admin/includes/admin.php');
- if($_GET['options'])
- {
- echo $_GET['options'];
- }
- ?>
Go next step
