close
Skip to content

add hook on value for meta fields - #111

Merged
bordoni merged 2 commits into
bordoni:release/0.4.8from
Mte90:patch-2
Jul 18, 2017
Merged

add hook on value for meta fields#111
bordoni merged 2 commits into
bordoni:release/0.4.8from
Mte90:patch-2

Conversation

@Mte90

@Mte90 Mte90 commented Jul 5, 2017

Copy link
Copy Markdown
Contributor

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

Mte90 commented Jul 6, 2017

Copy link
Copy Markdown
Contributor Author

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

bordoni commented Jul 6, 2017

Copy link
Copy Markdown
Owner

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 July 18, 2017 12:31
@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

Development

Successfully merging this pull request may close these issues.

2 participants