Backend scripting for WP complete