WordPress XMLRPC: wp.getPageTemplates
WordPress XMLRPC provides wp.getPageTemplates to Retrieve page templates. Parameters int blog_id string username string password Return Values array struct string name string description Let’s see the program. Note that you must fill the following parameters $USERNAME $PASSWORD $BLOGID $BLOGURL Note that BLOGID is usually one or you can use wp.getUsersBlogs to get the value of [...]
WordPress XMLRPC: wp.getPageStatusList
WordPress XMLRPC provides wp.getPageStatusList to retrieve all of the WordPress supported page statuses. Parameters int blog_id string username string password Return Values struct const string ‘draft’ const string ‘private’ const string ‘publish’ Let’s see the program. Note that you must fill the following parameters $USERNAME $PASSWORD $BLOGID $BLOGURL Note that BLOGID is usually one or [...]
WordPress XMLRPC: wp.getPostStatusList
WordPress XMLRPC provides wp.getPostStatusList to retrieve post statuses. Parameters int blog_id string username string password Return Values array const string ‘draft’ const string ‘pending’ const string ‘private’ const string ‘publish’ Let’s see the program. Note that you must fill the following parameters $USERNAME $PASSWORD $BLOGID $BLOGURL Note that BLOGID is usually one or you can [...]
WordPress XMLRPC: wp.getCommentCount
WordPress XMLRPC gives the following function wp.getCommentcount to retrieve comment count for a specific post. Parameters for the function int blog_id string username string password string post_id Return Values array struct int approved int awaiting_moderation int spam int total_comments The return value gives the details of the comment like the number of comments approved for [...]
XMLRPC: demo.addTwoNumbers
With demo.sayHello, you saw how to make use of wordpress XMLRPC functions. But demo.sayHello doesn’t take any parameters as arguments. To show how to pass arguments, let’s explore demo.addTwoNumbers. It takes two integers as arguments and returns a response which is the sum of the two numbers As you see, that we pass two numbers. [...]
XMLRPC- Hello World- demo.sayHello
With WordPress XMLRPC, you can blog from your desktop client. WordPress XMLRPC provides a series of methods to perform various operations which you normally do from your WordPress website. To start working with wordpress XMLRPC, let’s take a simple “Hello World!” program On executing this simple program, you will get a simple “Hello World!” message [...]