6 Snippets
<10 Favourites


echo 'test';

Escaping Data

// instead the _e(), __() or _x() use the escaped version _e('Email Summary', 'duplicator-pro'); // this…

Basic WP escaping functions

// ❌ Don't use _e(), __(), _x() etc. to output data // ✅ Use the escaped…

Escaping data with wp_kses

// ❌ Don't use html tags in escaping functions like esc_html, esc_attr and their localized equivalents…

HTML inside PHP

How to output HTML inside PHP.


// This code is part of the template, $tplData['hasShellZip'] is provided through TplMng $hasShellZip = $tplData['hasShellZip'];…