Leveraging AI to Supercharge Your WordPress Business Website
In today’s competitive digital landscape, every business website needs an edge to...
30.Sep.2021 | Code Snippets, Wordpress
To allow the editor user role to have full access to Gravity Forms, simply add this code to your functions.php file.
function gf_editor()
{
$role = get_role( 'editor' );
$role->add_cap( 'gform_full_access' );
}
add_action( 'admin_init', 'gf_editor' );PHP, Wordpress, Wordpress Function, WordPress Tips
Share

In today’s competitive digital landscape, every business website needs an edge to...

WordPress has come a long way since its humble beginnings in 2003....

In the ever-evolving landscape of website development, staying ahead of the curve...
Add this code to your functions.php file to add the dimensions to the image object array for svgs. add_filter( 'wp_get_attachment_image_src',...
Get the featured image dimensions (width and height) in WordPress. Paste the following code in the single.php file. <?php $post_id...
Fed up of getting the W3 Validator warning "The type attribute is unnecessary..."? Here is a handy bit of code to...