[wp-hackers] running the themeunit.xml programmatically from the back end
halukkaramete at gmail.com
Thu Jul 17 15:28:00 UTC 2014
Nikola, thank you.. but I need to that from within the php script - as part
of my function.
there must be an api for this.
On Thu, Jul 17, 2014 at 8:21 AM, Nikola Nikolov <nikolov.tmw at gmail.com>
> I'd use wp-cli for that and more specifically the "wp import" command -
> On Thu, Jul 17, 2014 at 6:14 PM, Haluk Karamete <halukkaramete at gmail.com>
> > I wrote a script which is when I run it, it puts my localhost
> > of the wordpress site back to the right after 5-min-install state.
> > So it basically truncates most tables and bam brings to the fresh
> > ( I just won't touch the user stuff and the options table ) but
> > else back to seed 0.
> > So when I run that script, I am left with Mr. Wordpress's Comment plus
> > Hello World post and the Sample Page. And that's what I call
> > install state.
> > This script is a time saver for me. Cause I'm doing some heavy duty plug
> > development and I'd like such quick actions to be available to me.
> > but I'd like to take it to the next level.
> > I'd like to attach an argument to that function of mine to tell my
> > "hey go ahead and run this
> > https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml
> > while
> > we are at it.
> > My question to you is what API call should I use so that my script gives
> > the back-to-5-min install state plus the theme-unit-test-data.xml?
> > Thank you
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers