Select Page

Display titles of your Gravity Forms

How can I display title of all active Gravity Forms? Add this code to your page: <?php // display Gravity Forms titles $forms = GFAPI::get_forms(); $i = 0; for ($i=0; $i<count($forms); $i++) { echo $forms[$i]['title']; echo "<br />"; }...

How to hide WordPress login error messages

Instead of displaying that the username or password are incorrect, how can I display only an error message when logging in? Add this code in functions.php or your plugin: <?php // hide detailed error message add_filter('login_errors', function($error) {...

Disable Gutenberg Editor in WordPress

How can I disable Gutenberg without using a plugin ? To disable Gutenberg and keep the original editor, simply add this 2 lines in functions.php or your plugin: <?php // disable Gutenberg for posts add_filter('use_block_editor_for_post',...

Count the number of entries in a Gravity Form

How can I sum all entries from a specific field as a counter? To display number of entries submitted, insert this code on your page: <?php // count all entries for form ID 1, when key 2 has the value "true" $search_criteria = array( 'status'...

Set a global target for all external links

How can I automatically open all external links in a new window? When you have a website with external links, it’s preferable that these links open in a new window, so that the visitor can return to your website once the external page has been consulted. In...