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

Adds extra parameters to dt_create_missing_terms. #378

Merged
merged 2 commits into from
Jul 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,11 @@ function set_taxonomy_terms( $post_id, $taxonomy_terms ) {
* @since 1.0.0
*
* @param bool true Controls whether missing terms should be created. Default 'true'.
* @param string The taxonomy name.
* @param array Term data.
* @param WP_Term|array|false WP_Term object or array if found, false if not.
*/
$create_missing_terms = apply_filters( 'dt_create_missing_terms', true );
$create_missing_terms = apply_filters( 'dt_create_missing_terms', true, $taxonomy, $term_array, $term );

if ( empty( $term ) ) {

Expand Down