Each time you use wp_enqueue_style, they each need their own unique ID. So ‘google-fonts’ isn’t going to work with:
wp_enqueue_style( ‘google-fonts’, ‘http://fonts.googleapis.com/css?family=‘. $enque_font, false, ”, ‘all’ );
And you have two variables set up for the array?
$font_link = $style_font_standard = array(
I wrote it as one variable and in the array, they have pairs, so I’m assuming the left side was meant for the unique IDs and the right side, for the link that gets inserted after ‘http://fonts.googleapis.com/css?family=‘.
And with arrays, instead of implode, tell WordPress what to do with each pair of values you have using a for each. Here’s what I have. I’m not sure if it will work for what you’re planning but at the very least, it starts you off by enquequeing the css like you wanted.
$style_font_standard = array(
"none" => "Select a font",//please, always use this key: "none"
"Arial" => "Arial",
"Actor" => "Actor",
"Abel" => "Abel",
"Allura" => "Allura",
"Advent Pro" => "Advent Pro");
foreach($style_font_standard as $fontstyle => $fontlink) {
wp_enqueue_style( $fontstyle, 'http://fonts.googleapis.com/css?family='. $fontlink, false, '', 'all' );
}
Hope that helps. There’s a free video on TutsPlus that helps explain arrays better:
https://tutsplus.com/lesson/arrays-part-1/
Good luck!