PUM_Upsell::notice_bar_display()
Adds a small notice bar in PM admin areas when not using any extensions
Description Description
Source Source
File: classes/Upsell.php
public static function notice_bar_display() { if ( pum_is_all_popups_page() && 0 === count( pum_enabled_extensions() ) ) { $message = sprintf( /* translators: %s - Wraps ending in link to pricing page. */ esc_html__( 'You are using the free version of Popup Maker. To get even more value, consider %1$supgrading to our premium plans%2$s.', 'popup-maker' ), '<a href="https://wppopupmaker.com/pricing/?utm_source=upsell-notice-bar&utm_medium=text-link&utm_campaign=upsell" target="_blank" rel="noopener noreferrer">', '</a>' ); ?> <div class="pum-notice-bar-wrapper"> <div class="pum-notice-bar"> <span class="pum-notice-bar-message"> <?php echo wp_kses( $message, array( 'a' => array( 'href' => array(), 'rel' => array(), 'target' => array(), ), ) ); ?> </span> </div> </div> <?php } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.14.0 | Introduced. |