first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace WPML\PostTranslation\SpecialPage;
|
||||
|
||||
class Hooks implements \IWPML_Backend_Action {
|
||||
|
||||
public function add_hooks() {
|
||||
add_action( 'current_screen', [ $this, 'deleteCacheOnSettingPage' ] );
|
||||
}
|
||||
|
||||
public function deleteCacheOnSettingPage( \WP_Screen $currentScreen ) {
|
||||
if ( 'options-reading' === $currentScreen->id ) {
|
||||
\WPML_Pre_Option_Page::clear_cache();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user