Skip to content

Instantly share code, notes, and snippets.

@marklchaves
Created January 18, 2022 05:31
Show Gist options
  • Save marklchaves/7095ed9ccdbdeffc16fee4954b9fd31c to your computer and use it in GitHub Desktop.
Save marklchaves/7095ed9ccdbdeffc16fee4954b9fd31c to your computer and use it in GitHub Desktop.
Popup Maker: Filter popup content
<?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.
* /
@marklchaves
Copy link
Author

Result

popup-maker-pum_poup_content-filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment