abrudtkuhl / WordPressSharp

A C# client to to interact with the WordPress XML-RPC API
abrudtkuhl.github.io/WordPressSharp/
GNU General Public License v3.0
103 stars 49 forks source link

How to active Comment section! #106

Closed mohammad983 closed 3 years ago

mohammad983 commented 4 years ago

Hi guys When I send a post to WordPress via wordpresssharp, by default comment section is disabled. how can enable it by default?

mohammad983 commented 3 years ago

anyone can help me?

abrudtkuhl commented 3 years ago

Hi @mohammad983 - I think you want the comment status field set to "open".

'comment_status' (string) Post comment enabled status. Accepts 'open' or 'closed'.

https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/wp_newpost/

mohammad983 commented 3 years ago

it's exactly what I want. thanks.