0], is_array($atts) ? $atts : [], self::NAME); $id = (int) $a['id']; if (!$id) { return current_user_can('edit_posts') ? '

' . sprintf( /* translators: %s is the shortcode name, for example aumframe_form */ esc_html__('Usage: [%s id="FORM_ID"]', 'aumframe'), esc_html(self::NAME) ) . '

' : ''; } $html = Ask::html(self::NAME, ['id' => $id]); if (trim($html) !== '') { return $html; } $own = \Aumframe\Forms\Render::render($id); if (trim($own) !== '') { return $own; } return current_user_can('edit_posts') ? '

' . esc_html(sprintf( /* translators: %d: the form ID written in the shortcode. */ __('Form %d was not found — it may have been deleted, or it is not published yet.', 'aumframe'), $id )) . '

' : ''; } }