Inventory_Presser_Admin_Photo_Arranger
Source Source
File: includes/admin/class-admin-photo-arranger.php
Expand full source code Collapse full source code View on Github
Methods Methods
- add_attachment_to_gallery — add_attachment_to_gallery
- add_hooks — Adds hooks that power the feature.
- change_parents_and_sequence — Runs on edit_post hook. Changes the post_parent values on photos in our magic Gallery block.
- create_gallery — Makes sure the Gallery Block is waiting for the user when they open a vehicle post in the block editor.
- delete_attachment_handler — delete_attachment_handler
- find_gallery_block — Look at the blocks in a given post for a gallery block with a specific CSS class.
- inner_blocks_contains_id — inner_blocks_contains_id
- is_enabled — Is the photo arranger via a Gallery Block feature enabled?
- is_gallery_block_with_specific_css_class — is_gallery_block_with_specific_css_class
- maintain_gallery_during_attach_and_detach — maintain_gallery_during_attach_and_detach
- remove_attachment_from_gallery — remove_attachment_from_gallery
- safe_update_post — Removes our `edit_post_{post-type}` hooks, calls `wp_update_post()`, and re-adds the hooks.
- unattach_when_removed — unattach_when_removed