LLMS_Admin_AddOns::output()
Output HTML for the current screen
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.addons.php
if ( empty( $_POST[ 'llms_' . $action ] ) ) { continue; } foreach ( llms_filter_input( INPUT_POST, 'llms_' . $action, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY ) as $id ) { $addon = llms_get_add_on( $id ); if ( ! method_exists( $addon, $action ) ) { continue; } $ret = call_user_func( array( $addon, $action ) ); if ( is_wp_error( $ret ) ) { LLMS_Admin_Notices::flash_notice( $ret->get_error_message(), 'error' ); } else { LLMS_Admin_Notices::flash_notice( $ret ); } } } // phpcs:enable WordPress.Security.NonceVerification.Missing } /** * Output HTML for the current screen * * @since 3.5.0 * @since 3.28.0 Unknown. * @since 4.10.1 Use `hr.wp-header-end` in favor of a second (hidden) <h1> to "catch" admin notices. * * @return void */ public function output() { if ( is_wp_error( $this->get_data() ) ) { _e( 'There was an error retrieving add-ons. Please try again.', 'lifterlms' ); return; } ?> <div class="wrap lifterlms lifterlms-settings lifterlms-addons"> <div class="llms-subheader"> <h1><?php _e( 'LifterLMS Add-Ons, Courses, and Resources', 'lifterlms' ); ?></h1> <?php do_action( 'llms_addons_page_after_title' ); ?> </div> <div class="llms-inside-wrap"> <?php $this->output_navigation(); ?>
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.10.1 | Use hr.wp-header-end in favor of a second (hidden) <h1> to "catch" admin notices. |
3.5.0 | |
3.28.0 | Introduced. |