- fix profile block for guests

This commit is contained in:
ashubawork
2023-05-09 13:30:39 +03:00
parent 2c222e34b8
commit 0c7bfbf9d7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ if ( ! class_exists( 'um\core\Blocks' ) ) {
return '';
}
}
$shortcode = '[ultimatemember';
$shortcode = '[ultimatemember is_block="1"';
if ( isset( $atts['form_id'] ) && '' !== $atts['form_id'] ) {
$shortcode .= ' form_id="' . $atts['form_id'] . '"';