Title: Edit plugin functions within a declared class
Last modified: January 8, 2017

---

# Edit plugin functions within a declared class

 *  Resolved [r99photography](https://wordpress.org/support/users/r99photography/)
 * (@r99photography)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/edit-plugin-functions-within-a-declared-class/)
 * Hello,
    I have a plugin with a certain class and then a function which feeds 
   a dropdown menu within the plugin shortcode builder. Here below the snippet code:
 *     ```
       class WlaFigaSettings {
   
       <some other functions>
   
       public function SbattiName( $value ) {
            return $this->BocceAssurde( $value, array(
       	array( 'dte', __( 'Date', 'bella-figa' ) ),
       	'ID',
       	array( 'ahor', __( 'Author', 'bella-figa' ) ),
       	array( 'tte', __( 'Title', 'bella-figa' ) ),
       	array( 'vagi', __( 'Menu order', 'bella-figa' ) ),
       	) );
           }
   
       <some other functions>
       }
       ```
   
 * My task is really easy: add another option to that function causing an addition
   to the dropdown option menu within the plugin shortcode builder.
 * Obviously, I don’t want to modify the original file, so I need for some customization
   in the functions.php file or in another (my own) plugin.
 * Thank you.
    Bye.

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

 *  [swayam.tejwani](https://wordpress.org/support/users/swayamtejwani/)
 * (@swayamtejwani)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/edit-plugin-functions-within-a-declared-class/#post-8633252)
 * What plugin you are using for this ? Does they provide any kind of filters or
   hooks to customize the plugin ?
 *  Thread Starter [r99photography](https://wordpress.org/support/users/r99photography/)
 * (@r99photography)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/edit-plugin-functions-within-a-declared-class/#post-8633484)
 * I had not thought it was so difficult getting an answer. So let’s detail my question:
   Is it possible extend a plugin using its class and methods, even if hooks are
   not available, or not in the position I wanna extend or modify?
    I am sorry but
   it does not matter which plugin I referred to, it could name Pippolo, Plutolo,
   Bombolo or Crnerentolo. In the case above, there are dozens of other methods 
   along with the one I had showed. No do_action nor apply_filters there, only some
   add_action which refers to a function who collects all options established by
   the methods class. Thank you, I think it is better to search elsewhere.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/edit-plugin-functions-within-a-declared-class/#post-8635114)
 * Sure, everything in the WP environment shares the same namespace. As long as 
   the “final” keyword is not used in the declaration, you can extend a plugin’s
   class from another plugin or theme.

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

The topic ‘Edit plugin functions within a declared class’ is closed to new replies.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [extend](https://wordpress.org/support/topic-tag/extend/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/edit-plugin-functions-within-a-declared-class/#post-8635114)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
