Is it possible to make get variable out of filter in Class?
The filter has 2 args, not one. Try: add_filter ( ‘woocommerce_account_menu_items’, array($this, ‘wooquickmy_grab_endpoints’), 10 , 2 ); public function wooquickmy_grab_endpoints($items, $endpoints){ // do something with $endpoints return $items; }