WPWale / wp-yak

Written in familiar PHP, WP Yak is a simple deployment tool for WordPress Plugin & Theme Development
1 stars 2 forks source link

WP Integration (as plugin?) #10

Open actual-saurabh opened 6 years ago

actual-saurabh commented 6 years ago

Does it make more sense to have this as a WP plugin, especially since

  1. We can use WP APIs instead of using other libraries.
  2. We can use $wpdb to store credentials and such, instead of implementing any storage as per #8
  3. It could be installed using wp-cli, instead of composer or git.
actual-saurabh commented 6 years ago

Cons: It'll show up in the plugins list on WP to clients and that's not very good. What we could do instead is just load wordpress into the code:

include('/path/to/wp-load.php');

and then use all WP APIs.