The component post-author
uses getAuthors()
to get the authors, this functions calls the REST API.
export function* getAuthors() {
const users = yield apiFetch( { path: '/wp/v2/users/?who=authors&per_page=-1' } );
yield receiveUserQuery( 'authors', users );
}
So you can only filter via the REST API filter rest_user_query, but this can have effects on other plugins which also use this endpoint to get the user list.
Related Posts:
- How would one modify the filtering Gutenberg applies to pasted content?
- Gutenberg: Is there a way to know if current block is inside InnerBlocks?
- How to add a custom CSS class to core blocks in Gutenberg editor?
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- How to use update_{$meta_type}_metadata filter to modify meta value
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- Changing text within the Block Editor
- Remove left alignment option in core/image block
- How can I display image metadata?
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- How to filter into post meta data before saving
- Filter Gutenberg Blocks Content
- Explanation for remove_filter used in the below code [closed]
- Filter list by a unique meta value dilemma
- How do I replace a render_callback function for a block?
- How can I filter block registration based on post-type? (Block alignment settings)
- Gutenberg disable the “block” tab in right sidebar
- How to remove get_post_metadata using remove_filter inside a class?
- Sorting and limitation with pre_get_posts
- How to change the order of HTML output of a core block?
- Gutenberg – Add align controls to a custom block
- Can the wordpress color palettes by changed through Javascript?
- Inline Styles on all native blocks
- How to link the whole list item in Gutenberg’s latest posts block?
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- Set default terms for new posts / CPTs
- Custom wp_query time filter on meta_value
- Detect when gutenberg editor title is available in Dom after editor load
- Gutenberg Block – Post Featured Image Filter Hook
- Set default value for “Additional CSS class(es)” for specific block types
- How to hide/remove GhostKit component panel in gutenberg block inspector
- Filter posts by meta data using custom query
- Excluding posts by meta, and also keeping posts without the meta
- How to optionally append components to the output of a gutenberg block?
- Problem width wp_insert_post_data and Gutenberg block editor
- WordPress Gutenberg core/heading block (wp-block-heading)
- Changing the category for existing Gutenberg blocks
- How do I check if I can use the allowed_block_types filter?
- How to add lazy field in content endpoint using Gutenberg blocks
- How to add more than one custom metadata as filter on the post list page?
- Hide H1 Title using the_title filter
- Adding an orderby filter, casting postmeta with multiple keys
- How to add custom HTML attribute to reusable block div in WordPress admin
- How to change this WP logo and posts url in block editor?
- what is __return_false in filters
- How to edit a post meta data in a Gutenberg Block?
- Passing Additional Parameters to add_filter Callable
- Custom theme hooks / filters – passing arguments
- Change upload directory on custom plugin page
- How to hook wp_list_pages?
- Don’t replace “|” with Empty String (“”) when generating slugs from title
- apply_filters(‘the_content’, $content) alternative
- How to use the_excerpt in a filter hook?
- Add wrapper to only youtube videos via embed_oembed_html filter function
- Changing document title only on a custom page template
- Shortcodes not resolved in AJAX call response
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- wp_link_pages output appears twice
- Add filter to wp_dropdown_pages() or wp_dropdown_categories() – no select container?
- How do I pass the value from a foreach loop to an add_filter function? [closed]
- Search results sorted by post types
- Pass parameter to the upload_dir filter
- Filter or Hook to catch pre-rendering of post content
- Gutenberg Blocks – Change EDIT part of the block using editor.BlockEdit filters. How to change the markup?
- check to see if hook is available
- Use add_filter on concatenated string variable
- Filter users by custom colum not meta key
- How to allow users to view pending posts of a specific custom post type?
- Remove filter callback: method in class
- How to filter meta_values using REST API
- Admin Backend – Search Pages only by title
- Add content as soon starts
- Access get_the_title() from ‘excerpt_length’ filter
- Wrong post_status notice after wp_insert_post_data
- Comment search plugin
- How to display the content HTML of a page without displaying the gallery code as well
- Remove Comment Author Link only for subscribers
- Prevent reset password specific user role
- How would I be able to use a font awesome icon as a user’s avatar?
- Add something after a filter
- add_filter the_content doesn’t work
- Redirect to woocommerce checkout after adding to cart – item already in cart
- Add filter unless it is being called under specific function
- How do I add a line break to a string that is output by PHP?
- style_loader_tag not changing stylesheet to preload
- Distinguish between page and post in function
- Display posts from today and future in Elementor ‘posts widget’
- Right filter for rewriting page statuscode
- Changing title using filter not working with argument
- Archive Widget – Count only parent posts
- adding an action inside if condition not working
- Cutting off excerpt with first sentence
- Change URLs in default WordPress slider to relative from absolute
- Change add_filter based on Ajax
- check, if any “add_action” function contains string XXXXXXXXX
- Add Default WordPress Formatting To Data From External SQL Tables?
- Joining tables not working in the post editor page
- Auto append text after the title?
- add_filter(‘the_content’, ‘method’) does not trigger my custom method
- Limit total tags in the_content