[memb_php_include] / [memb_php_include_once]

OTHER DOCS Available


This shortcode displays the contents of the specified PHP file within a website.

Shortcode Examples

The below shortcode will display contents of http://www.yourdomain.com/demo/helloworld_include.php:

[memb_php_include filename="demo/helloworld_include"]

Note: Please use this shortcode with caution and do not include the .php extension to the shortcode, as it is automatically added to the filename.

Shortcode Parameters​

filename: Refers to the name of the PHP file on the website that needs to be displayed on a particular page. Through this shortcode, you can use absolute, or relative filenames. The relative filenames will be referenced from the document root.  Do NOT include the .php at the end of the filename.  That will be automatically added.


Shortcode Attributes

Conditional: Yes (?)
Nestable: No (?)
Accepts formatting: No (?)
Capturable: No (?)

9 ways to add more value to your membership site

[memb_php_include, memb_php_include_once]

This Applies To