Skip to content

Commit 3521f5d

Browse files
authored
Update README.md
[ci skip] Signed-off-by: Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com>
1 parent 25119ff commit 3521f5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ By the means of bound `$this`, signature, and priority, it is possible to *very
211211
// Somewhere in a plugin...
212212
class Foo {
213213

214-
public __construct() {
214+
public function __construct() {
215215
add_filter( 'the_title', function( $title ) { /* ... */ } );
216216
add_filter( 'the_content', function( string $content ) { /* ... */ } );
217217
}
@@ -302,7 +302,7 @@ remove_instance_hook(
302302
// Somewhere...
303303
class Foo {
304304

305-
public __construct() {
305+
public function __construct() {
306306
add_filter( 'the_title', [ $this, 'the_title_early', 1 ] );
307307
add_filter( 'the_title', [ $this, 'the_title_late', 9999 ] );
308308
add_filter( 'the_content', [ $this, 'the_content' ] );
@@ -343,11 +343,11 @@ function remove_invokable_hook(
343343
// Somewhere...
344344
class Foo {
345345

346-
public __construct() {
346+
public function __construct() {
347347
add_filter( 'template_redirect', $this );
348348
}
349349

350-
public __invoke() {
350+
public function __invoke() {
351351
/* some code here */
352352
}
353353

0 commit comments

Comments
 (0)