It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
36
37
$this->post_id = $post_id;
38
39
}
40
41
/**
42
* Get the word count of the post content.
43
*
44
* The count is calculated over the post content after stripping shortcodes and html tags.
45
*
46
* @since 3.14.0
47
*
48
* @return integer the number of words in the content after stripping shortcodes and html tags..
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.