How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?

This should work if you add it to your functions.php file. It targets the buttons on the second row in your text editor. To target the first row, use the mce_buttons hook instead of mce_buttons_2. /** * Removes text color button from tiny mce editor */ add_filter( ‘mce_buttons_2’, ‘remove_tiny_mce_buttons’); function remove_tiny_mce_buttons( $buttons ) { if … Read more

Visual and Text tabs missing from Editor

Your problem could be one of 2 things: This could be because for some reason the tabs were disabled. To enable it log into your WordPress admin > WordPress Main Menu > Users > Edit(user with the issue) > First Option Top of Screen is “Visual Editor”> Unchecked the box > clicked save, and everything … Read more

Add class to oEmbed video from within post editor?

One idea for the shortcode version, would be to add the custom class via the the native shortcode: then you could add it to your custom wrapper with: add_filter( ’embed_oembed_html’, function ( $html, $url, $attr, $post_ID) { return sprintf( ‘<figure class=”video-container %s”>%s</figure>’, isset( $attr[‘class’] ) ? esc_attr( $attr[‘class’] ) : ”, $html ); }, 10, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)