Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hook on value for meta fields #111

Merged
merged 2 commits into from Jul 18, 2017
Merged

Conversation

@Mte90
Copy link
Contributor

Mte90 commented Jul 5, 2017

Example of using:

function faker_add_comma( $value, $args ) {
	$value = str_replace( ' ', ',', $value );
	$value = str_replace( '.', '', $value );
	return $value;
}

add_filter( 'faker_glossary_tag', 'faker_add_comma', 9999,2 );
Example of using:

```
function faker_add_comma( $value, $args ) {
	$value = str_replace( ' ', ',', $value );
	$value = str_replace( '.', '', $value );
	return $value;
}

add_filter( 'faker_glossary_tag', 'faker_add_comma', 9999 );
```
@Mte90
Copy link
Contributor Author

Mte90 commented Jul 6, 2017

I think that for this plugin is missing a documetation to find all the hooks but this one was useful to me to customize the data on the custom field as I want.

@bordoni
Copy link
Owner

bordoni commented Jul 6, 2017

I will for sure add this one, just need to make sure it has a changelog + the same Std as the other filters.

@bordoni bordoni changed the base branch from master to release/0.4.8 Jul 18, 2017
@bordoni bordoni merged commit b6695ac into bordoni:release/0.4.8 Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.