You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2021. It is now read-only.
I need delete_transient after updating the page in the admin panel, but for some reason the hook does not work.
$titan = TitanFramework::getInstance( 'fairy' );
My function:
function fcook_cat_delete_transients($container, $activeTab, $options) {
if ( $activeTab == 'homepage-options' ) {
delete_transient( 'some_old_transient' );
}
}
add_action( 'tf_pre_save_admin_fairy', 'fcook_cat_delete_transients', 10, 3 );
Gives an error:
PHP Parse error: syntax error, unexpected end of file in....
Ref: gambitph#395
The text was updated successfully, but these errors were encountered: