Created
January 5, 2023 19:10
-
-
Save alanef/df14373d866cf79f9cfdfa8dcdde8aae to your computer and use it in GitHub Desktop.
Code snippet to remove PROTECTED
This file contains hidden or 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 | |
| /** | |
| * Plugin Name: Remove Protected code snippet | |
| * Description: Remove the protected from the content of a post | |
| **/ | |
| add_filter( 'protected_title_format', function ( $format ) { | |
| return '%s'; | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment