- Create file named git-push-wh with the following content and add it to your path
#!/bin/sh
GIT_DIR_="$(git rev-parse --git-dir)"
BRANCH="$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))"
<?php | |
add_filter( 'rewrite_rules_array', 'cache_frontend_ajax_rules' ); | |
/** | |
* Rewrite rules filter to add rules for front end ajax calls | |
* | |
* @param array $rewrite_rules | |
* | |
* @return array | |
*/ |