Link to home
Start Free TrialLog in
Avatar of Brad Bansner
Brad Bansner

asked on

Best WordPress hook to import external posts

I've been developing with WordPress for a while now, but I'm working on my first custom function which I intend to make into a plugin.

I have an external source of posts in XML format that I want to bring into my site.

My function will read in the posts, determine which ones should be added, and programmatically add the posts to my site.

What I'm wondering is how I should hook this function into my site. I only want it to run when WordPress admin loads (no need to have this extra overhead when the public side of the site loads). I hope I am correct in that what I am looking for is a "hook" to attach my function to, correct?

What are my best options for this function?

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brad Bansner
Brad Bansner

ASKER

Thank, man.