` markup.
*/
function desktop_mode_games_icon_svg() {
return '';
}
/**
* Whether the current user can use desktop games.
*
* @since 0.9.6
*
* @return bool
*/
function desktop_mode_games_user_can_use() {
$can = is_user_logged_in() && current_user_can( 'read' );
/**
* Filter whether the current user can see the Games window,
* icon, and play games.
*
* @since 0.9.6
*
* @param bool $can Default: logged-in + `read` capability.
*/
return (bool) apply_filters( 'desktop_mode_games_user_can_use', $can );
}
/**
* Echoes the Games window's template body.
*
* The `data-desktop-mode-games-*` hooks are the contract the JS
* render callback relies on — keep them intact (or rename via the
* filter) when customizing the layout.
*
* @since 0.9.6
*/
function desktop_mode_games_render_template() {
ob_start();
?>