Redeclare a plugins function/class in my theme?
You can extend the existing class to override a particular class method (function): class Mod_Groups_Post_Access extends Groups_Post_Access { public static function wp_get_nav_menu_items( $items = null, $menu = null, $args = null ) { // … your code … } } Then you would need to call $instance = new Mod_Groups_Post_Access(); instead of $instance = new … Read more