Created
January 18, 2022 05:31
-
-
Save marklchaves/7095ed9ccdbdeffc16fee4954b9fd31c to your computer and use it in GitHub Desktop.
Popup Maker: Filter popup content
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 // Ignore this first line when copying to your child theme's functions.php file. | |
add_filter( 'pum_popup_content', function( $message ) { | |
return '<div><p>Hello, World! This is a popup from Popup Maker :-)</p></div>' . $message; | |
} ); | |
/** | |
* You can add the PHP code snippet to your child theme's functions.php file | |
* or with third-party plugins such as My Custom Functions and Code Snippets. | |
* / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result