Description
Filters the value of the post comment status.
Usage
add_filter(
'wp_data_sync_post_comment_status'
,
'my_post_comment_status'
, 10, 1
);
Parameters
$value
string
The post comment status value
Code Example
add_filter(
'wp_data_sync_post_comment_status'
,
'my_post_comment_status'
, 10, 1
);
function
my_post_comment_status
(
$value
) {
//Do cool stuff here!!
return
$value
;
}
Contact us if you need a better code example for this hook. We are happy to write one for you.