Documentation

CommonTrait

Trait common folder meta and user settings helper methods.

Tags
since
4.0.8

Table of Contents

Methods

hardReloadAfterSaveIfBodyHasClass()  : mixed
Reload the current document if the `body` has a given class. This allows you e.g. to only reload in Media Library view instead of while editing a post.
reloadAfterSave()  : mixed
Reload the current selected folder after the metadata is successfully saved.

Methods

hardReloadAfterSaveIfBodyHasClass()

Reload the current document if the `body` has a given class. This allows you e.g. to only reload in Media Library view instead of while editing a post.

private hardReloadAfterSaveIfBodyHasClass(array<string|int, string> &$response, string $class) : mixed
Parameters
$response : array<string|int, string>
$class : string

reloadAfterSave()

Reload the current selected folder after the metadata is successfully saved.

private reloadAfterSave(array<string|int, string> &$response) : mixed
Parameters
$response : array<string|int, string>

        
On this page

Search results