Capitalize Shortcode Value on Output
Try this out. . . function cwc_pkmn( $atts = array(), $content=”” ) { // ———————— // Settings: $path=”https://wordpress.stackexchange.com/path/to/file/”; $ext=”png”; // ———————— // Shortcode input: $atts = shortcode_atts( array( ‘name’ => ” ), $atts, ‘pkmn_shortcode’ ); // Sanitize input: $name = esc_attr( $atts[‘name’] ); // Init: $words_ucfirst = array(); // Capitalize the first letter in each … Read more