diff --git a/docs/extensibility/parser.md b/docs/extensibility/parser.md index 14533792355fb..c240aa62ff2d1 100644 --- a/docs/extensibility/parser.md +++ b/docs/extensibility/parser.md @@ -27,11 +27,11 @@ class EmptyParser { } } -function select_empty_parser( $prev_parser_class ) { +function my_plugin_select_empty_parser( $prev_parser_class ) { return 'EmptyParser'; } -add_filter( 'block_parser_class', select_empty_parser, 10, 1 ); +add_filter( 'block_parser_class', 'my_plugin_select_empty_parser', 10, 1 ); ``` > **Note**: At the present time it's not possible to replace the client-side parser.