WP-CLI class to iterate over any number of posts and pass it through you custom function
GNU General Public License v2.0GPL-2.0