File Editor
Directories:
.. (Back)
Files:
abstract-action-route.php
abstract-indexation-route.php
alert-dismissal-route.php
first-time-configuration-route.php
importing-route.php
indexables-head-route.php
indexing-route.php
integrations-route.php
meta-search-route.php
route-interface.php
semrush-route.php
supported-features-route.php
wincher-route.php
workouts-route.php
yoast-head-rest-field.php
Create New File
Create
Edit File: abstract-action-route.php
<?php namespace Yoast\WP\SEO\Routes; use WP_REST_Response; /** * Abstract_Action_Route class. * * Abstract class for action routes. */ abstract class Abstract_Action_Route implements Route_Interface { /** * Responds to an indexing request. * * @param array $objects The objects that have been indexed. * @param string $next_url The url that should be called to continue reindexing. False if done. * * @return WP_REST_Response The response. */ protected function respond_with( $objects, $next_url ) { return new WP_REST_Response( [ 'objects' => $objects, 'next_url' => $next_url, ] ); } }
Save Changes
Rename File
Rename