Skip to content

Commit 6d40083

Browse files
committed
remove review request when clicking close
remove review request when clicking close notice button and hide it untill next term
1 parent 63c08b7 commit 6d40083

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

class-fancybox-review.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,21 @@ public function ajax_script() {
145145

146146
} );
147147

148+
$('#mfbfw-epsilon-review-notice .notice-dismiss').click(function(){
149+
150+
var data = {
151+
action: 'epsilon_mfbfw_review',
152+
security: '<?php echo $ajax_nonce; ?>',
153+
check: 'epsilon-later'
154+
};
155+
156+
$.post( '<?php echo admin_url( 'admin-ajax.php' ) ?>', data, function( response ) {
157+
$( '#<?php echo $this->slug ?>-epsilon-review-notice' ).slideUp( 'fast', function() {
158+
$( this ).remove();
159+
} );
160+
});
161+
});
162+
148163
});
149164
</script>
150165

0 commit comments

Comments
 (0)