* @license GPL-2.0+ * @link https://wpadvancedads.com * @copyright since 2013 Thomas Maier, Advanced Ads GmbH */ $ad_groups_list = new Advanced_Ads_Groups_List(); // create new group. if ( isset( $_REQUEST['advads-group-add-nonce'] ) ) { $create_result = $ad_groups_list->create_group(); // display error message. if ( is_wp_error( $create_result ) ) { // potential error comes from WP_Error and is no user input. // phpcs:ignore $error_string = $create_result->get_error_message(); echo '
' . esc_html( $error_string ) . '
' . esc_html__( 'Ad Group successfully created', 'advanced-ads' ) . '
' . $error_string . '
' . esc_html__( 'Ad Groups successfully updated', 'advanced-ads' ) . '
manual.', 'advanced-ads' ), array( 'a' => array( 'href' => array(), 'target' => array(), ), ) ), esc_url( ADVADS_URL ) . 'manual/ad-groups/#utm_source=advanced-ads&utm_medium=link&utm_campaign=groups' ); ?>