Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Extension_License::notices()
Admin notices for errors
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Return Return
(void)
Source Source
File: classes/Extension/License.php
public function notices() { static $showed_invalid_message; if ( empty( $this->license ) ) { return; } if ( ! current_user_can( 'manage_options' ) || $showed_invalid_message ) { return; } $messages = array(); $license = get_option( $this->item_shortname . '_license_active' ); if ( is_object( $license ) && 'valid' !== $license->license ) { if ( empty( $_GET['tab'] ) || 'licenses' !== $_GET['tab'] ) { $messages[] = sprintf( __( 'You have invalid or expired license keys for Popup Maker. Please go to the %sLicenses page%s to correct this issue.', 'popup-maker' ), '<a href="' . admin_url( 'edit.php?post_type=popup&page=pum-settings&tab=licenses' ) . '">', '</a>' ); $showed_invalid_message = true; } } if ( ! empty( $messages ) ) { foreach ( $messages as $message ) { echo '<div class="error">'; echo '<p>' . $message . '</p>'; echo '</div>'; } } }
Expand full source code Collapse full source code View on Trac