Function WP Script