Yoast\WP\SEO\Exceptions\Indexable

Post_Not_Found_Exception{}Yoast 1.0

Exception that is thrown whenever a post could not be found in the context of the indexables.

Хуков нет.

Использование

$Post_Not_Found_Exception = new Post_Not_Found_Exception();
// use class methods

Методы

  1. public __construct()

Код Post_Not_Found_Exception{} Yoast 19.5.1

class Post_Not_Found_Exception extends Source_Exception {

	/**
	 * Exception that is thrown whenever a post could not be found
	 * in the context of the indexables.
	 */
	public function __construct() {
		parent::__construct( \__( 'The post could not be found.', 'wordpress-seo' ) );
	}
}