protected function overrideUsingFilterAndActions() {

		// The post type must have custom-fields support otherwise the meta fields will not appear in the REST API.
		add_post_type_support( $this->post_type, 'custom-fields' );

		add_filter( "rest_{$this->post_type}_query", [ $this, 'overrideQueryArgs' ] );
		add_filter( "rest_prepare_{$this->post_type}", [ $this, 'overrideResponse' ], 10, 3 );
		add_filter( "rest_{$this->post_type}_trashable", [ $this, 'overrideTrashable' ], 10, 2 );
	}