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

Conversation

Projects
None yet
2 participants
@Mte90
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 );
add hook on valuye for meta fields
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

This comment has been minimized.

Show comment
Hide comment
@Mte90

Mte90 Jul 6, 2017

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@bordoni

bordoni Jul 6, 2017

Owner

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

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