' . esc_html__( 'Poll deleted successfully.', 'aht-poll-master' ) . '
';
}
if ( 'updated' === $ahtpoma_message ) {
echo '' . esc_html__( 'Poll updated successfully.', 'aht-poll-master' ) . '
';
}
if ( 'status_updated' === $ahtpoma_message ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
$ahtpoma_status = isset( $_GET['status'] ) ? sanitize_text_field( wp_unslash( $_GET['status'] ) ) : '';
if ( 'activated' === $ahtpoma_status ) {
echo '' . esc_html__( 'Poll activated successfully.', 'aht-poll-master' ) . '
';
} else {
echo '' . esc_html__( 'Poll deactivated successfully.', 'aht-poll-master' ) . '
';
}
}
if ( 'error' === $ahtpoma_message ) {
echo '' . esc_html__( 'Something went wrong. Please try again.', 'aht-poll-master' ) . '
';
}
}
?>
|
|
|
|
$ahtpoma_poll) : ?>
|
|
|
$ahtpoma_option) {
$ahtpoma_formatted_options[] = chr(65 + $ahtpoma_key) . '. ' . sanitize_text_field($ahtpoma_option);
}
echo esc_html(implode(', ', $ahtpoma_formatted_options));
?>
|
|
|
|