show_notice()

Shows an admin welcome notice.


Return Return

(boolean)


Top ↑

Source Source

File: includes/functions/updates/llms-functions-updates-600.php

114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
function show_notice() {
 
    $notice_id = sprintf( 'v%s-welcome-msg', str_replace( array( '.', '-' ), '', _get_db_version() ) );
 
    $get_started_link = admin_url( 'post-new.php?post_type=llms_certificate' );
 
    $html = sprintf(
        '<strong>%1$s</strong><br><br>%2$s<br><br>%3$s',
        __( 'Welcome to LifterLMS 6.0.0!', 'lifterlms' ),
        __( "This new version brings you the power to build and customize certificates using the WordPress block editor! Start building beautiful certificates using all the blocks you're already familiar, the new Certificate Title block, and new certificate settings like page size (Letter or A4, for example), orientation, background color, and more. In addition to design features, this version also adds the ability to modify already-awarded certificates and achievements and to sync template updates with the click of a button.", 'lifterlms' ),
        sprintf(
            // Translators: %1$s = Opening anchor tag to Forms admin page; %2$s = Closing anchor tag.
            __( '%1$sGet Started%2$s', 'lifterlms' ),
            '<a class="button-primary" href="' . esc_url( $get_started_link ) . '" >',
            '</a>'
        ) . ' ' .
        sprintf(
            // Translators: %1$s = Opening anchor tag to the welcome blog post on lifterlms.com; %2$s = Closing anchor tag.
            __( '%1$sRead More%2$s', 'lifterlms' ),
            '<a class="button" href="https://blog.lifterlms.com/6-beta?utm_source=notice&utm_medium=product&utm_campaign=lifterlmsplugin&utm_content=600-welcome" target="_blank" rel="noopener">',
            '</a>'
        )
    );
 
    \LLMS_Admin_Notices::add_notice(
        $notice_id,
        $html,
        array(
            'type'             => 'success',
            'dismiss_for_days' => 0,
            'remindable'       => false,
        )
    );
    return false;
 
}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.