Nigel Hancock

Grassmediaweb

Number of snippets: 12

Redirect after successful non-admin login

PHP
4

This snippet redirects a non-admin user to the URL or page/post of choice.

AI Verified

Enable Fluent Forms login form capability

PHP
1

In: General

Fluent forms does not allow the creation of a login form natively at the time of writing. However, this snippet...

AI Verified

Create new image sizes in WordPress

PHP
1

If you want to create new image sizes, this is the code snippet you've been looking for. Can be really...

AI Verified

Regenerate thumbnails - no extra plugin required.

PHP
0

Created new image sizes? Changed themes? This code snippet will force WordPress to regenerate thumbnails without the need for any...

AI Verified

Fluent Forms - Reject contents of email field

PHP
1

In: General

Maybe you want to reject selective contents of an email field - for example, not permitting hotmail, gmail etc. This...

AI Verified

Add custom fields to user profile

PHP
1

This is a simple and very flexible code snippet for adding custom fields to a user profile. Saves a bulky...

AI Verified

Add a custom post type to WordPress named "Slides"

PHP
1

Add a custom post type to WordPress without having to use a plugin.

AI Verified

Add a custom taxonomy to a post type named "Slides"

PHP
0

Having added a custom post type named "Slides", this code adds the ability to also have categories.

AI Verified

Display word count with a shortcode

PHP
0

In: General

<p>Creates a shortcode to show the word count on the page on which the shortcode is placed.  The shortcode will...

AI Verified

Render ACF Pro Repeater Field as shortcode in Elementor

PHP
0

In: Elementor

Renders the Contents of an ACF Pro Repeater field as an HTML table using a simple shortcode.

AI Verified

Download original media files

PHP
1

In: General

Add the code to your theme's functions.php or a custom plugin Navigate to Media &gt; Download Originals in the WordPress...

AI Verified