Submit URL to Bing Webmaster Tool Automatically When Publishing WordPress Post – WordPress Tutorial

By | June 12, 2019

If you want to submit your wordpress post url to bing webmaster when publishing automatically, I think this post will very helpful to you.

You also can submit your wordpress post url to bing manually, however, it is time consuming. How to submitting it automatically?

Step 1. Check bing webmaster api

You can check it in here.

https://docs.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.submiturl?view=bing-webmaster-dotnet

Step 2. Add submit function

Here is an basic example

function submit_urls($ID, $post){
	$permalink = get_permalink( $ID );
	submit_to_bing($permalink)
}
add_action('publish_post', 'submit_urls', 10, 2 );

I test this function, and get very exciting result.

Please look below.

submit url to webmaster tool

I submit a post automatically in 2019/6/12

Then i checked bing search result after some minutes, i searched this post in bing search result.

submit url to webmaster tool and display in search result

It prove our method works.

Leave a Reply