This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Plugin Name: CLI Export Multisite | |
*/ | |
if ( ! defined( 'WP_CLI' ) ) return; | |
use \WP_CLI\Utils; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Plugin Name: CLI Export Multisite | |
*/ | |
if ( ! defined( 'WP_CLI' ) ) return; | |
use \WP_CLI\Utils; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_rewrite_rule('^workshops/([^/]+)(/[0-9]+)?/([^/]+)/([^/]+)', 'index.php?&workshop=$matches[4]&page=', 'top'); | |
add_rewrite_rule('^workshops/([^/]+)(/[0-9]+)?/([^/]+)', 'index.php?pagename=workshops&cat=$matches[1]&subcat=$matches[3]', 'top'); | |
add_rewrite_rule('^workshops/([^/]+)/?', 'index.php?pagename=workshops&cat=$matches[1]', 'top'); | |
add_rewrite_tag('%subcat%', '([^&]+)'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*idea to develop further would be, add a text box that the user can input the quote in | |
this then gets added to the DB and passed to the $quotes array. From here the results get | |
output the same way*/ | |
/* | |
Plugin Name: Random Quotes | |
Plugin URI: xxx | |
Description: This Plugin randomly generates Quotes input by the user. | |
Version: 0.0.1 |
NewerOlder