Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
| .PHONY: all tags clean test build install generate image release | |
| REGISTRY_REPO = <..redacted..> | |
| OK_COLOR=\033[32;01m | |
| NO_COLOR=\033[0m | |
| ERROR_COLOR=\033[31;01m | |
| WARN_COLOR=\033[33;01m | |
| # Build Flags |
Firstly install Brew on your MAC
Then install PHP
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
| <?php | |
| /** | |
| * Create a new custom yoast seo sitemap | |
| */ | |
| add_filter( 'wpseo_sitemap_index', 'ex_add_sitemap_custom_items' ); | |
| add_action( 'init', 'init_wpseo_do_sitemap_actions' ); | |
| // Add custom index |
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Add External Sitemap to Yoast Sitemap Index | |
| * Credit: Paul https://wordpress.org/support/users/paulmighty/ | |
| * Last Tested: Aug 25 2017 using Yoast SEO 5.3.2 on WordPress 4.8.1 | |
| ********* | |
| * This code adds two external sitemaps and must be modified before using. | |
| * Replace http://www.example.com/external-sitemap-#.xml | |
| with your external sitemap URL. |