0 ){ $buttonsNew = array_chunk ($buttons , (int)$toggle ,false ); array_push($buttonsNew[0], 'amazon_product_tmce_button'); $buttons = array_merge($buttonsNew[0], $buttonsNew[1]); }else{ array_push($buttons, 'amazon_product_tmce_button'); } return $buttons; } function custom_tmce_css() { wp_enqueue_style('amazon-product-in-a-post-custom-tmce', plugins_url('/css/tmce-styles.css', dirname( __FILE__ ))); } } new AmazonProductPost_addCustomMCE_FCM();