You appear to be a bot. Output may be restricted
Description
Implement "init" action for oik plugins server
Implement the oik equivalent of WordPress.org responding to http://api.wordpress.org/plugins/update-check/1.0/ http://api.wordpress.org/plugins/info/1.0/
Usage
oikp_plugin_rewrite();
Parameters
Returns
void
Source
File name: oik-plugins/oik-plugins.php
Lines:
1 to 17 of 17
function oikp_plugin_rewrite() { add_rewrite_tag( "%oik-plugin%", '([^/]+)' ); add_permastruct( 'oik-plugin', 'plugins/%oik-plugin%' ); add_action( "template_redirect", "oikp_template_redirect" ); add_filter( "wp_handle_upload", "oikp_handle_upload", 10, 2 ); add_filter( "posts_request", "oikp_posts_request", 10, 2 ); // Handle http://oik-plugins.co.uk/plugins/download?plugin=oik-often-included-key-information-kit&version=1.17.1002.1444&id=245&action=update add_rewrite_tag( "%oik-banner%", '([^/]+)' ); add_permastruct( 'oik-banner', 'banner/%oik-banner%' ); //add_rewrite_tag( "%oik-tab%", '([^/]+)' ); //add_permastruct( 'oik-plugins-tab', 'oik-plugins//%oik-tab%' ); //add_rewrite_rule( "oik-plugins/([^/]+)/?([^/]+)?", 'index.php?post_type=oik-plugins&postname=$matches[1]&oik-tab=$matches[2]' ); }