Skip to content

Commit

Permalink
Add notice after WPEM
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarrett-godaddy committed Dec 8, 2016
1 parent 4a7a80e commit 494a89a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions godaddy-email-marketing.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,26 @@ public function deactivate() {
* Displays the admin notice.
*/
public function action_admin_notices() {

if ( get_option( 'wpem_gem_notice' ) ) {

?>
<div class="gem-notice notice notice-success is-dismissible">
<p>
<?php
printf(
__( 'Your website has a superpower: Email marketing. %1$s.', 'godaddy-email-marketing' ),
'<a href="' . admin_url( 'options-general.php?page=gem-settings' ) . '">' . __( 'Learn More', 'godaddy-email-marketing' ) . '</a>'
);
?>
</p>
</div>
<?php

delete_option( 'wpem_gem_notice' );

}

$screen = get_current_screen();

if ( 'plugins' !== $screen->id ) {
Expand Down

0 comments on commit 494a89a

Please sign in to comment.