Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Chris,

    The WP-CLI commands are actually to be called from the command line since that would give you a huge speed boost over calling it from code like that. If you have WP-CLI installed then you can call the command like this.

    wp mailchimp-sync all

    (Provided the wp-cli.phar file is in your path, as explained here.)

    If you want to call that from code then I would use something like this.

    shell_exec( 'wp mailchimp-sync all' );

    Hope that helps. If not, let me know!

Viewing 1 replies (of 1 total)
  • The topic ‘WP-CLI commands’ is closed to new replies.