You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,24 +55,20 @@ Install in the standard way via the 'Plugins' menu in WordPress and then activat
55
55
You can add normalization to anything that passes its content through a filter. The canonical way is to use the `unfc_extra_filters` filter which returns an array of filter names -
56
56
for instance, in your theme's `functions.php` file, add:
57
57
58
-
`<?php
59
-
function mytheme_unfc_extra_filters( $extra_filters ) {
Note that the `unfc_extra_filters` filter is only called in the administration backend. You can also add a filter directly, to be called in the frontend or backend, by referencing the
67
65
global PHP variable `unfc_normalize`, but you should ensure that the `Normalizer` polyfill is loaded if you don't have the PHP `Intl` extension installed:
68
66
69
-
`<?php
70
-
global $unfc_normalize;
71
-
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
72
-
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
73
-
}
74
-
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
75
-
`
67
+
global $unfc_normalize;
68
+
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
69
+
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
70
+
}
71
+
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
Copy file name to clipboardExpand all lines: readme.txt
+10-14Lines changed: 10 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -54,24 +54,20 @@ Install in the standard way via the 'Plugins' menu in WordPress and then activat
54
54
You can add normalization to anything that passes its content through a filter. The canonical way is to use the `unfc_extra_filters` filter which returns an array of filter names -
55
55
for instance, in your theme's `functions.php` file, add:
56
56
57
-
`<?php
58
-
function mytheme_unfc_extra_filters( $extra_filters ) {
Note that the `unfc_extra_filters` filter is only called in the administration backend. You can also add a filter directly, to be called in the frontend or backend, by referencing the
66
64
global PHP variable `unfc_normalize`, but you should ensure that the `Normalizer` polyfill is loaded if you don't have the PHP `Intl` extension installed:
67
65
68
-
`<?php
69
-
global $unfc_normalize;
70
-
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
71
-
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
72
-
}
73
-
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
74
-
`
66
+
global $unfc_normalize;
67
+
if ( ! function_exists( 'normalizer_is_normalized' ) ) { // If the "Intl" extension is not installed...
68
+
$unfc_normalize->load_unfc_normalizer_class(); // ...load the polyfill.
69
+
}
70
+
add_filter( 'myfilter', array( $unfc_normalize, 'normalize' ), 6 /* Or whatever priority you choose */ );
0 commit comments