Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Titan hook for delete_transient not working #11

Open
codeclinic opened this issue Aug 12, 2020 · 0 comments
Open

Titan hook for delete_transient not working #11

codeclinic opened this issue Aug 12, 2020 · 0 comments
Labels
bug Something isn't working needs verification
Milestone

Comments

@codeclinic
Copy link
Collaborator

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

@davidsneighbour davidsneighbour added bug Something isn't working needs verification labels Aug 12, 2020
@davidsneighbour davidsneighbour added this to the 2.0.0 milestone Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs verification
Projects
None yet
Development

No branches or pull requests

2 participants