-
-
Save johnbillion/a5113d0362fb5238742bf773d3da9c4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class value { | |
protected $value = null; | |
function __construct( $value ) { | |
$this->value = $value; | |
} | |
function __invoke() { | |
return $this->value; | |
} | |
} | |
add_filter( 'the_title', new value( 'Hello there' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment