| 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 | */ |
||
| 28 | public function auto_delete_logs_addon_upsell_message_loglist_page() { |
||
| 29 | $email_log = email_log(); |
||
| 30 | $logs_count = $email_log->table_manager->get_logs_count(); |
||
| 31 | if ( $logs_count > 5000 ) { |
||
| 32 | if ( ! \PAnD::is_admin_notice_active( 'disable-upsell-notice-forever' ) ) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | ?> |
||
| 36 | <div data-dismissible="disable-upsell-notice-forever" class="updated notice notice-success is-dismissible"> |
||
| 37 | <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> |
||
| 57 |