| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace EmailLog\Addon; |
||
| 27 | public function render_auto_delete_logs_addon_upsell_message() { |
||
| 28 | if ( ! \PAnD::is_admin_notice_active( 'disable-upsell-notice-forever' ) ) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | $email_log = email_log(); |
||
| 32 | $logs_count = $email_log->table_manager->get_logs_count(); |
||
|
|
|||
| 33 | //if ( $logs_count > 5 ) { |
||
| 34 | ?> |
||
| 35 | <div data-dismissible="disable-upsell-notice-forever" class="updated notice notice-success is-dismissible"> |
||
| 36 | <p><?php _e( 'The Auto Delete Logs add-on allows you to automatically delete logs based on a schedule. <a href="https://wpemaillog.com/addons/auto-delete-logs/?utm_campaign=Upsell&utm_medium=wpadmin&utm_source=log-list&utm_content=dl" target="_blank">Buy now</a>', 'email-log' ); ?></p> |
||
| 37 | </div> |
||
| 43 |