Change WooCommerce Add to Cart Button Text
Steps Done — the default “Add to Cart” text will be replaced with “Buy Now”.
Steps Done — the default “Add to Cart” text will be replaced with “Buy Now”.
Add your own CSS class to every page. Steps Done — a custom class will be added to the <body> tag.
Show the featured image at the top of RSS feed content. Steps Open functions.php. Add the code below. Save the file. Done — RSS readers will display featured images.
Removes the Help tab from the top-right corner of the admin area. Steps Open functions.php. Add the code below. Save the file. Done — the Help tab will be hidden.
Prevent users from changing admin color schemes. Steps Open functions.php. Add the code below. Save the file. Done — color scheme options will disappear from profiles.
To add a new user role in WordPress, you use the add_role() function. You can place this snippet in your active theme’s functions.php file or within a custom plugin. Here is the standard snippet to create a custom role (in this example, a “Manager”)
Check current user role
Display the total number of words in a post. Steps Add the code below to functions.php. Save the file. Call the function inside your theme. Done — readers can see the article word count.
Helpful for portfolio, photography, and artwork websites. Steps Done — images cannot be dragged by visitors.
Allow visitors to copy the current post URL with one click. Steps Open your WordPress theme functions.php file. Add the code below at the end of the file. Save the file. View any post and click the button. Done — visitors can instantly copy the post URL.
Enter to see all results · Esc to close