Simplifying WP interface

using magic methods instead of manually defining each function