git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?php | |
| /** | |
| * Add meta fields support in rest API for post type `Post` | |
| * | |
| * This function will allow custom parameters within API request URL. Add post meta support for post type `Post`. | |
| * | |
| * > How to use? | |
| * http://mysite.com/wp-json/wp/v2/posts?meta_key=<my_meta_key>&meta_value=<my_meta_value> | |
| * | |
| * > E.g. Get posts which post meta `already-visited` value is `true`. |
| <?php | |
| // This is the cleaner code per request of a thread in the LinkedIn group "WordPress" | |
| // ... | |
| // register and enqueue loadCSS | |
| function load_scripts_and_styles() { | |
| // register loadCSS | |
| wp_register_script( 'load-css-async', get_stylesheet_directory_uri() . '/path/to/js/loadCSS.js', array(), '', false ); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This gist assumes:
www-data (may be apache on other systems)