tabs ) > 1 ) : ?>
tabs as $tab ) : ?>
get_label() ); ?>
tabs )[0]->get_title() ); ?>
tabs as $tab ) {
if ( $tab->get_slug() === $current_tab ) {
printf( '
%s
', esc_html( $tab->get_title() ) );
/**
* Fires before tab content.
*
* @since 2.8.0
*
* @param PageAbstract $tab Current tab.
*/
do_action( 'wp_mail_smtp_admin_pages_before_content', $tab );
/**
* Fires before tab content.
*
* @since 2.9.0
*
* @param PageAbstract $tab Current tab.
*/
do_action( "wp_mail_smtp_admin_page_{$page_slug}_{$current_tab}_display_before", $tab );
$tab->display();
/**
* Fires after tab content.
*
* @since 2.8.0
*
* @param PageAbstract $tab Current tab.
*/
do_action( "wp_mail_smtp_admin_page_{$page_slug}_{$current_tab}_display_after", $tab );
break;
}
}
?>
tabs,
function ( $a, $b ) {
return ( $a->get_priority() < $b->get_priority() ) ? - 1 : 1;
}
);
}
/**
* Whether tab is valid.
*
* @since 3.0.0
*
* @param array $tab Page tab.
*
* @return bool
*/
private function is_valid_tab( $tab ) {
return is_subclass_of( $tab, '\WPMailSMTP\Admin\PageAbstract' );
}
}