/******************************************************
* Lets you select any user to be credited as author.
* this filter works with the Gutenberg Rest-Api
******************************************************/
// define the rest_user_query callback
function filter_rest_user_query( $prepared_args, $request ) {
$prepared_args['who'] = '';
return $prepared_args;
};
// add the filter
add_filter( 'rest_user_query', 'filter_rest_user_query', 10, 2 );
select any user to be credited as author (Gutenberg Rest-Api)
13 december 2019