Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



Put it in functions.php
0 509 posted 7 years ago by burnandbass
https://www.chrisjmendez.com/2014/09/19/wordpress-disable-html-in-wordpress-comments/
0 462 posted 7 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/19/wordpress-replace-a-themes-google-font-with-your-own/
0 444 posted 7 years ago by chrisaiv
enter the full name you want displayed alongside the email address
0 433 posted 7 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/
0 372 posted 7 years ago by chrisaiv
Gravity Forms by default will write an inline JavaScript call to jQuery on every form you add to a page.
0 356 posted 7 years ago by chrisaiv
Prevents wordpress back-end from stripping formatting
0 276 posted 7 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/13/wordpress-remove-header-junk-from-default-wordpress-install/
0 417 posted 7 years ago by chrisaiv
Disallow HTML in WordPress comments, add this snippet to your functions.php file.
0 418 posted 7 years ago by chrisaiv
You might also consider just installing this Wordpress plug-in. It's way easier https://wordpress.org/plugins/google-typography/
0 394 posted 7 years ago by chrisaiv
Add Login / Logout to your WordPress Menu. You must have UserPro
0 378 posted 7 years ago by chrisaiv
If you make a lot of edits, eventually the revisions will start to bother you or bog down your database. Heres how you can put a cap on the number of recorded revisions.
0 350 posted 7 years ago by chrisaiv
To encourage subscribers to visit your website, rather than letting them just consume content through your RSS feed, you might want to display only the excerpt and featured image of posts.
0 391 posted 7 years ago by chrisaiv
If you want statistics about your subscribers, you’ll have to use FeedBurner instead of Wordpress' out-of-the-box feed.
0 356 posted 7 years ago by chrisaiv
If you user logs in and they're on a mobile phone, they might get that annoying black bar on top. This script removes that if they can edit posts or on mobile.
0 372 posted 7 years ago by chrisaiv
Checks if a particular user has a role.
0 418 posted 7 years ago by chrisaiv
It's probably not a good idea to always use this trick but if you need to, you'll be glad you bookmarked this script.
0 354 posted 7 years ago by chrisaiv
Insert a favicon using functions.php
0 287 posted 7 years ago by chrisaiv
One thing that can go wrong in WordPress magazine themes is when users include too many words before the more tag.
0 322 posted 7 years ago by chrisaiv
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 402 posted 7 years ago by 108Bits
Simply paste the following snippet of code into your theme’s functions.php file and adjust the CSS on line 4 as needed.
0 430 posted 7 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 935 posted 7 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 1101 posted 7 years ago by razvanstavila
Add custom header style for Admin
0 390 posted 7 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 437 posted 7 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 427 posted 7 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 387 posted 7 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 369 posted 7 years ago by daprela
FME has designed efficient Canvas Drawing Plugin for WordPress that enables users to draw canvas online on separate paint book by utilizing basic drawing tools like brush, pencil, etc. This WordPress Plugin will create two additional pages on your we...
0 355 posted 7 years ago by alastarmason1
A custom widget area for wordpress.
1 330 posted 7 years ago by JamesAbels