call_user_func_array() expects parameter 1 to be a valid callback, function
You have to change this add_action(‘admin_menu’,’mafongroup_admin_menu’); to add_action(‘admin_menu’,array( $this, ‘mafongroup_admin_menu’ ) );. Cause you’r here calling a class method. So you’ve to give reference to the class. And also if you put public before declaring mafongroup_admin_menu() function, it would be more readable and would be helpful in future I think. See the updated class code … Read more