Filter: wpbuddy/rich_snippets/ruleset/get

apply_filters( 'wpbuddy/rich_snippets/ruleset/get', $ruleset, $post_id ) → {Position_Ruleset|null}

Ruleset filter. Allows to overwrite a ruleset for a given Global Snippet.
Parameters:
Name Type Description
$ruleset Position_Ruleset | null The new ruleset.
$post_id int The post ID.
Since:
  • 2.0.0
Source:
Returns:
The new ruleset or NULL if default ruleset should be loaded.
Type
Position_Ruleset | null

apply_filters( 'wpbuddy/rich_snippets/ruleset/get', $ruleset, $post_id ) → {Position_Ruleset|null}

Ruleset filter. Allows to overwrite a ruleset for a given Global Snippet.
Parameters:
Name Type Description
$ruleset Position_Ruleset | null The new ruleset.
$post_id int The post ID.
Since:
  • 2.0.0
Source:
Returns:
The new ruleset or NULL if default ruleset should be loaded.
Type
Position_Ruleset | null