apply_filters( 'rest_url_prefix', string $prefix )

Filters the REST URL prefix.


Parameters

$prefix string
URL prefix. Default 'wp-json'.

Top ↑

Source

File: wp-includes/rest-api.php. View all references

return apply_filters( 'rest_url_prefix', 'wp-json' );


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.