Skip to main content

React when a podcaster resets an email design or their branding

Premium Intermediate

Both fire around a reset that removes something; $type is _wrapper for a show’s branding, and $show_id is 0 for the site-wide design. A reset of what was not stored fires neither.

Code

<?php
add_action( 'benecaster_email_editor_after_template_reset', function ( int $show_id, string $type ): void {
    delete_transient( 'my_addon_design_summary_' . $show_id );
}, 10, 2 );

View on GitHub →

Hooks Used

Need this built rather than just documented? See our services →