Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged filter



« Prev 1 Next »
  1. FAV

    Sort & query multi-dimensional arrays by properties

    Sort & query arrays in PHP. Sort multi dimensional arrays by object properties and filter the array by specific criteria. Documentation: https://github.com/mattnicholson/DataList
    PHP saved by 4 people 15 views posted 5 years ago by mattnicholson
  2. FAV

    filter out by category

    filter out by category ID in Magento
    PHP 7 views posted 6 years ago by tomle123
  3. FAV

    IP Blacklist Check Script

    Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button
    PHP saved by 6 people 30 views posted 7 years ago by DNSBL
  4. FAV

    Add attachments to Events Calendar Pro (2.1) iCal feed

    Requires filter added in ECP 2.1
    PHP saved by 4 people 6 views posted 8 years ago by nciske
  5. FAV

    Add Current Class To Single Posts in Wordpress Nav Menu

    Add current class to single posts in Wordpres wp_nav_menu by adding a filter
    PHP 13 views posted 8 years ago by inflightatnight
  6. FAV

    Update "Posts" Menu Title

    Allows you to change the name of the "Posts" module within the admin section of WordPress.
    PHP 3 views posted 8 years ago by jamiebrwr
  7. FAV

    Wordpress taxonomy filters in admin

    PHP saved by 2 people 8 views posted 8 years ago by kirichev
  8. FAV

    Filter Posts Using Query Posts

    PHP 7 views posted 8 years ago by ddabney
  9. FAV

    Filter replace accented characters with accent-less equivalent

    PHP 9 views posted 9 years ago by Roen
  10. FAV

    Photoshop Like "Offset" Function

    This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation. I would lik...
    PHP 5 views posted 9 years ago by Jamie
  11. FAV

    Custom Taxonomy post listing filter for WordPress with sort options

    PHP 16 views posted 9 years ago by errkk
  12. FAV

    Recover fields from a database by filtering per a specific field

    By using this snippet we can recover fields from a database by filtering these ones per a specific field.
    PHP saved by 3 people 6 views posted 9 years ago by juanchifc
  13. FAV

    Clean up and normalize email address

    Requires PHP 5.2 with filter_var()
    PHP saved by 3 people 5 views posted 9 years ago by Calvista
  14. FAV

    WordPress add post thumbnails to feeds

    PHP 6 views posted 9 years ago by josephknight
  15. FAV

    Comfortable directory contents with filters

    Very simple to use. **Calling:** $files = dirContents(DIR_PATH, [FILTER, [TYPE]]); **Examples:** $files = dirContens("my-dir"); _$files_ is array containing all, both files either directories $files = dirContens("my-dir",...
    PHP 3 views posted 9 years ago by Lostindream
  16. FAV

    Enable WordPress body class function in Thesis Theme

    In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
    PHP saved by 8 people 12 views posted 10 years ago by joelhaus
  17. FAV

    Add Custom Body Class to WP Thesis

    Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
    PHP saved by 5 people 14 views posted 10 years ago by joelhaus
  18. FAV

    Select double pinyin domain name from database

    从数据库中选出大于3小于13的纯字母域名,然后进行过滤,得到双拼域名。 增加一个拼音预判断,过滤掉前两个字母不符合拼音要求的字符串。
    PHP 12 views posted 10 years ago by zhengrenchi
  19. FAV

    Replace All Latin Accents

    // FUNCION BY Ahmet Alp Balkan // http://www.ahmetalpbalkan.com
    PHP saved by 6 people 9 views posted 11 years ago by prf_q
  20. FAV

    Show filter en mxcollection

    PHP 2 views posted 11 years ago by manec
  21. FAV

    replace content tags with callback via regex

    PHP 5 views posted 12 years ago by eethann
  22. FAV

    在wordpress主循环中过滤掉指定类别中的帖子

    Exclude Posts From Some Category 这样就可以在首页中不显示某些类别(比如asides)的帖子了
    PHP saved by 2 people 5 views posted 13 years ago by championeer
« Prev 1 Next »