apply_filters( 'findstr_document_weight', $weight int, $post WP_Post )
add_filter( 'findstr_document_weight', $weight int, $post WP_Post )
Filter the document weight
Parameters
| Name | Type | Description |
|---|---|---|
$weight | int | the weight of the document |
$post | WP_Post | the post object |
- Source
Returns:
$weight the weight of the document
- Type:
- int