PluginProbe
Insert PHP Code Snippet / trunk
Insert PHP Code Snippet vtrunk
1.4.7 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 All 27 releases
insert-php-code-snippet / direct_call.php

direct_call.php in Insert PHP Code Snippet trunk, at direct_call.php

21 lines 487 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) )
3 exit;
4
5 function xyz_ips_plugin_query_vars($vars) {
6 $vars[] = 'wp_ips';
7 return $vars;
8 }
9 add_filter('query_vars', 'xyz_ips_plugin_query_vars');
10
11
12 function xyz_ips_plugin_parse_request($wp) {
13 /*confirmation*/
14 if (array_key_exists('wp_ips', $wp->query_vars) && $wp->query_vars['wp_ips'] == 'editor_plugin_js') {
15 require( dirname( __FILE__ ) . '/editor_plugin.js.php' );
16 die;
17 }
18
19 }
20 add_action('parse_request', 'xyz_ips_plugin_parse_request');
21