We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Filters the allowed directories for local file imports.
/** * Filters the allowed directories for local file imports. * * @param Activitypub\string[] $allowed_dirs * @param string $file_path * @return Activitypub\string[] The filtered value. */ function my_activitypub_allowed_import_directories_callback( Activitypub\string[] $allowed_dirs, string $file_path ) { // Your code here. return $allowed_dirs; } add_filter( 'activitypub_allowed_import_directories', 'my_activitypub_allowed_import_directories_callback', 10, 2 );
Activitypub\string[]
$allowed_dirs
string
$file_path
\apply_filters( 'activitypub_allowed_import_directories', $allowed_dirs, $file_path )
← All Hooks