Populate_From_Query::is_new_recipe()

Check if the post is an Automator recipe and is newly created.

Contents


Return Return

(bool)


Source Source

File: src/core/classes/class-populate-from-query.php

	protected static function is_new_recipe() {
		if ( 'uo-recipe' !== self::$post->post_type ) {
			return false;
		}
		if ( 'auto-draft' !== self::$post->post_status ) {
			return false;
		}
		return true;
	}