Filters the time budget, in seconds, for one run of the orphaned-upload cleanup. Defaults to 20 and is never less than 1. Anything left is picked up on the next run.
Filters the providers that must ALWAYS be imported before editor uploads, widening any export that includes them even when the added provider was never selected. A content domain that only wants its posts imported first WHEN ALSO SELECTED should hook davo_editor_migration_optional_providers instead.
Parameters of davo_editor_migration_required_providers
Filter editor-produced content immediately before it's sent in a REST response — the extension point for anything that would otherwise have been done via the_content (e.g. a site wanting to append a call-to-action, or run a specific third-party integration's own content filter) without reintroducing the whole classic-editor pipeline this function deliberately skips.
Parameters of davo_editor_render_content
Parameter
Type
Description
$content
string
Stored, already-sanitized post_content.
$context
string
Caller-supplied label for which content this is (e.g. 'question', 'answer', 'article') — passed through unchanged so listeners can tell content types apart; this function itself treats every context identically.
Filters each member's daily editor upload quota in bytes. Defaults to the editor_uploads_daily_quota_mb setting (200 MB). Users who can already upload to the Media Library are exempt.
Parameters of davo_editor_upload_daily_quota_bytes
Parameter
Type
Description
$bytes
int
Daily quota in bytes.
Returnsint
add_filter
add_filter( 'davo_editor_upload_daily_quota_bytes', 'my_filter_callback', 10, 1 );
/**
* @param int $bytes
*/functionmy_filter_callback( $bytes ) {
// Change $bytes as needed, then return it.return$bytes;
}
Filters the largest image, in pixels, that the editor accepts for upload. Defaults to the editor_uploads_max_image_megapixels setting (40 megapixels).
Parameters of davo_editor_upload_max_pixels
Parameter
Type
Description
$pixels
int
Maximum pixel count.
Returnsint
add_filter
add_filter( 'davo_editor_upload_max_pixels', 'my_filter_callback', 10, 1 );
/**
* @param int $pixels
*/functionmy_filter_callback( $pixels ) {
// Change $pixels as needed, then return it.return$pixels;
}
src/domains/editor/helpers.php:1535
Note. Generated from the plugin source. Descriptions and parameters are the ones written in the code. The starter code uses the parameter names from those comments, or generic names where there are none, so check them against your use.