Skip to content

Commit

Permalink
flushes rewrite rules
Browse files Browse the repository at this point in the history
  • Loading branch information
adampatterson committed Feb 4, 2018
1 parent 513734a commit 051e9c7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
13 changes: 12 additions & 1 deletion config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"uuidString": "72B07BFF-229F-4A49-9031-ABF7CE636EC0"
}
],
"creatorBuild": "26148",
"creatorBuild": "26261",
"files": {
"\/.bowerrc": {
"cB": 0,
Expand Down Expand Up @@ -380,6 +380,13 @@
"oAP": "\/templates\/partials\/.gitkeep",
"oF": 0
},
"\/templates\/template-inventory.php": {
"cB": 0,
"ft": 8192,
"oA": 0,
"oAP": "\/templates\/template-inventory.php",
"oF": 0
},
"\/vendor\/autoload.php": {
"cB": 0,
"ft": 8192,
Expand Down Expand Up @@ -1025,6 +1032,10 @@
"active": 0,
"optionString": "'^[a-z]+([A-Z][a-z]+)*$', {'properties': false, 'onlyDeclarations': true}"
},
"implicit-arrow-linebreak": {
"active": 0,
"optionString": "'beside'"
},
"indent": {
"active": 0,
"optionString": "4, {'SwitchCase': 0, 'VariableDeclarator': 1, 'outerIIFEBody': 1, }"
Expand Down
21 changes: 15 additions & 6 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// For composer dependencies
require 'vendor/autoload.php';

require_once( 'lib/init.php' );
require_once( 'lib/custom.php' );
require_once( 'lib/theme-helpers.php' );
require_once( 'lib/theme-api.php' );
require_once( 'lib/theme-rewrite.php' );
require_once( 'lib/theme-media.php' );
require_once('lib/init.php');
require_once('lib/custom.php');
require_once('lib/theme-helpers.php');
require_once('lib/theme-api.php');
require_once('lib/theme-rewrite.php');
require_once('lib/theme-media.php');

/*
add_filter('acf/settings/load_json', function($paths) {
Expand All @@ -25,3 +25,12 @@
});
*/

/*
* Used to clear the permalinks so that the custom rewrite rules will work.
add_action( 'after_switch_theme', 'reflush_rules' );
function reflush_rules() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
*/

0 comments on commit 051e9c7

Please sign in to comment.