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
1
2 3 4 5 6 7 8 9 10 11 12 13 |
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
Continue reading