Title: PHP Error In Function PHP
Last modified: August 30, 2016

---

# PHP Error In Function PHP

 *  [libmansworld](https://wordpress.org/support/users/libmansworld/)
 * (@libmansworld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/)
 * Hi all,
 * New to modifying the function.php file and know only basic php. Below is my function.
   php file. Dreamweaver says there is an error at the last line, i.e. add_filter(“
   mce_buttons_3”, “enable_more_buttons”);
 * Thanks,
    Greg
 * <?php
    //// Recommended way to include parent theme styles.// ///(Please see 
   [http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme))//
   function theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri().‘/
   style.css’ ); }
 * add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
 * //Your code goes below//
 * function enable_more_buttons($buttons) {
 * $buttons[] = ‘fontselect’;
    $buttons[] = ‘fontsizeselect’; $buttons[] = ‘styleselect’;
   $buttons[] = ‘backcolor’; $buttons[] = ‘newdocument’; $buttons[] = ‘cut’; $buttons[]
   = ‘copy’; $buttons[] = ‘charmap’; $buttons[] = ‘hr’; $buttons[] = ‘visualaid’;
 * return $buttons;
    } add_filter(“mce_buttons_3”, “enable_more_buttons”);

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [ionurboz](https://wordpress.org/support/users/ionurboz/)
 * (@ionurboz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/#post-6884700)
 *     ```
       //
       ```
   
 *  working for Single-line.
 *     ```
       /*
   
       */
       ```
   
 *  working multiple lines.
 * You are
 * `///(Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)//`
 * Replace with this
 * `/*(Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)*/`
 *  Thread Starter [libmansworld](https://wordpress.org/support/users/libmansworld/)
 * (@libmansworld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/#post-6884707)
 * I’m not sure I get your point. If I use the following between the astericksI 
   have no problem. I don’t see how your example helps. The error is coming at add_filter(“
   mce_buttons_3”, “enable_more_buttons”);
 * I got the added functions here:
 * [https://premium.wpmudev.org/blog/display-the-full-tinymce-editor-in-wordpress/](https://premium.wpmudev.org/blog/display-the-full-tinymce-editor-in-wordpress/)
 * G.L.
 * ************************
    <?php //// Recommended way to include parent theme 
   styles.// ///(Please see [http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme))//
   function theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri().‘/
   style.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); //
   Your code goes below// ***********************
 *  Thread Starter [libmansworld](https://wordpress.org/support/users/libmansworld/)
 * (@libmansworld)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/#post-6884709)
 * Found the error:
 * This
 * add_filter(“mce_buttons_3”, “enable_more_buttons”);
 * Should have been
 * add_filter(‘mce_buttons_3’, ‘enable_more_buttons’);
 * Double quotes removed and replaced with single quotes.
 * Thanks.
 *  [ionurboz](https://wordpress.org/support/users/ionurboz/)
 * (@ionurboz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/#post-6884712)
 * Glad it

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Error In Function PHP’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 4 replies
 * 2 participants
 * Last reply from: [ionurboz](https://wordpress.org/support/users/ionurboz/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-function-php/#post-6884712)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
