post_type ) { // We're deleting an attachment, check if it's an Envato Elements photo. $recorded_download_event_id = get_post_meta( $post->ID, 'envato_elements_download_event', true ); if ( $recorded_download_event_id ) { Downloaded_Items::get_instance()->remove_download_event( $recorded_download_event_id ); } } } public function load_custom_wp_admin_scripts() { Welcome::get_instance()->admin_page_assets(); wp_enqueue_script( 'elements-deep', ENVATO_ELEMENTS_URI . 'assets/elements_deep.js', [ 'envato-elements-admin', 'jquery' ], ENVATO_ELEMENTS_VER, true ); wp_enqueue_style( 'elements-deep', ENVATO_ELEMENTS_URI . 'assets/elements_deep.css', [], ENVATO_ELEMENTS_VER ); } }