Created
August 10, 2019 14:57
-
-
Save lkoudal/9e3d78536eb18c23c9fb1ff2dacfaa37 to your computer and use it in GitHub Desktop.
Simple Freemius register reminder nag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Use in plugin with Freemius - Place where to remind people to please give permissions. | |
| // Remember to change secnin_fs() to whatever your class is named. | |
| if ((!secnin_fs()->is_registered()) && (!secnin_fs()->is_pending_activation()) ) { | |
| ?> | |
| <div class="sidebarsection feature"> | |
| <h3><span class="dashicons dashicons-warning"></span> <?php _e('Never miss an important update', WF_SN_TEXT_DOMAIN); ?></h3> | |
| <p><?php | |
| _e('Opt-in to our security and feature updates notifications, and non-sensitive diagnostic tracking.', WF_SN_TEXT_DOMAIN ); | |
| ?></p> | |
| <p><?php | |
| echo sprintf(__('<a href="%s" class="button button-secondary">Click here to opt in.</a>', WF_SN_TEXT_DOMAIN ), | |
| secnin_fs()->get_reconnect_url() | |
| ); | |
| ?></p> | |
| </div> | |
| <?php | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment