mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed [ultimatemember] shortcode attributes;
This commit is contained in:
@@ -602,6 +602,16 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
* @return string
|
||||
*/
|
||||
public function ultimatemember( $args = array() ) {
|
||||
// There is possible to use 'shortcode_atts_ultimatemember' filter for getting customized `$args`.
|
||||
$args = shortcode_atts(
|
||||
array(
|
||||
'form_id' => '',
|
||||
'is_block' => 0,
|
||||
),
|
||||
$args,
|
||||
'ultimatemember'
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters variable for enable singleton shortcode loading on the same page.
|
||||
* Note: Set it to `false` if you don't need to render the same form twice or more on the same page.
|
||||
|
||||
Reference in New Issue
Block a user