Quantcast
Channel: Viper007Bond.com » code
Browsing all 9 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Twitter Followers Count Snippet for WordPress

Konstantin Kovshenin posted some code on his blog for how to display how many Twitter followers someone has. While the idea was good, I think he went about the implementation in the non-best method....

View Article



The Proper Way To Review Code

Before committing code, I explain it to Donkey Kong first to make sure it makes sense #codereview /cc @iamjohnford instagr.am/p/DWvPx/ — John James Jacoby (@JJJ) Avril 20, 2011 (Also known as rubber...

View Article

Image may be NSFW.
Clik here to view.

Changing Core WordPress Strings

One of the lesser known filters in WordPress is gettext. All strings that are run through the WordPress translation functions are also run through this filter after being translated thanks to a ticket...

View Article

Code Snippet: Add A Link To Latest Post To WordPress Nav Menu

Someone on #wordpress IRC support channel was trying to add link to their latest blog post to their WordPress navigation menu, so I threw together a few lines of code to help them accomplish this. //...

View Article

Image may be NSFW.
Clik here to view.

Code Snippet: Helper Class To Add Custom Taxonomy To Post Permalinks

Say you have a custom taxonomy called “sport” and you wanted to inject “football” into the permalink of posts that have the “football” term assigned to it. How would you go about doing that? Well below...

View Article


Code Snippet: Generate A Plaintext Data Table

Inspired by some awesome-as-always code written by my co-worker Mike Adams, here’s a helper function to help create plaintext data tables in PHP. This is particularly useful for PHP-based CLI scripts...

View Article

How To Create Custom WordPress Cron Intervals

This is mostly a reminder for myself so I can stop tracking it down every time I forget, but here’s how to have WordPress code execute on a different schedule than the default intervals of hourly,...

View Article

Using Traits In PHP 5.4

I just read a great article by Shameer C. about traits in PHP 5.4. I’m really looking forward to using this functionality. Basically you can create things called traits, modules if you will, that you...

View Article


Image may be NSFW.
Clik here to view.

Sublime 2: Open New Tabs On The Right

One of the few things that bugged me about my favorite text editor, Sublime 2, is that new tabs would open up next to the current tab instead on the far right. Since I usually have about a half-dozen...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images