* @license GPL-2.0+
* @link https://wpadvancedads.com
* @copyright since 2013 Thomas Maier, Advanced Ads GmbH
*
* @var WP_List_Table|false $wp_list_table the groups list table
* @var WP_Taxonomy $tax ad group taxonomy
* @var Advanced_Ads_Groups_List $ad_groups_list
* @var array[] $group_types
* @var array[] $group_types_premium
* @var bool $is_search true if a group is searched.
*/
?>
create_group();
if ( is_wp_error( $create_result ) ) {
echo '
' . esc_html( $create_result->get_error_message() ) . '
';
} else {
echo '
' . esc_html__( 'Ad Group successfully created', 'advanced-ads' ) . '
';
?>
update_groups();
// display error message.
if ( is_wp_error( $udpate_result ) ) {
$error_string = $udpate_result->get_error_message();
// potential error comes from WP_Error and is no user input.
// phpcs:ignore
echo '
';
} else {
echo '
' . esc_html__( 'Ad Groups successfully updated', 'advanced-ads' ) . '
';
}
}
?>
groups ) ) :
?>
$modal_slug,
'modal_content' => ob_get_clean(),
'modal_title' => __( 'New Ad Group', 'advanced-ads' ),
'close_action' => __( 'Save New Group', 'advanced-ads' ),
'close_form' => 'advads-group-new-form',
'close_validation' => 'advads_validate_new_form',
) );
?>
' . __( 'Search results for: %s' ) . '', '' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '' );
}
?>
groups ) && ! $is_search ) :
?>