wpml_object_id

wpml_object_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.3

apply_filters('wpml_object_id') is found 2 times:

  • /vendor/wpmetabox/meta-box/inc/wpml.php line 53
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    $object_type = 'taxonomy_advanced' === $field['type'] ? $field['taxonomy'] : $field['post_type'];
     
    // Translating values, whether are stored as comma separated strings or not.
    if ( ! str_contains( $value, ',' ) ) {
        $value = apply_filters( 'wpml_object_id', $value, $object_type, true, $target_language );
        return $value;
    }
     
    // Dealing with IDs stored as comma separated strings.
    $translated_values = [];
    $values            = explode( ',', $value );
  • /vendor/wpmetabox/meta-box/inc/wpml.php line 62
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
        $translated_values = [];
        $values            = explode( ',', $value );
     
        foreach ( $values as $v ) {
            $translated_values[] = apply_filters( 'wpml_object_id', $v, $object_type, true, $target_language );
        }
     
        $value = implode( ',', $translated_values );
        return $value;
    }