home_url( '/dashboard/' ) ) ); ?> * * @param array $args { * @type string $redirect Destination after login. Default: admin dashboard. * @type bool $show_messages Show error/info messages from a previous attempt. Default true. * @type bool $show_divider Show the "or" divider above the button. Default false. * } * @param bool $display Echo (true) or return (false). Default true. * @return string */ function m365_login_button( $args = array(), $display = true ) { $plugin = M365_Login::instance(); $html = $plugin->button->standalone( $args ); if ( $display ) { echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- markup is escaped where it is built. } return $html; } } if ( ! function_exists( 'm365_login_messages' ) ) { /** * Outputs (or returns) the error/info messages of the last Microsoft sign-in attempt. * * @param bool $display Echo (true) or return (false). Default true. * @return string */ function m365_login_messages( $display = true ) { $html = M365_Login::instance()->button->messages_markup(); if ( $display ) { echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- markup is escaped where it is built. } return $html; } }