• Home
  • Portfolio
  • WordPress
    • Plugins
      • Google Analytics Head
      • Post/Page specific custom CSS
      • Queen Inspirations
    • Themes
    • Others
      • Localize JavaScript code
      • Custom bulk actions
      • Hide your login
      • Admin buttons
  • GitHub
Łukasz Nowicki

Lead PHP/WordPress Engineer

  • WordPress
  • Woocommerce
  • PHP
  • Plugin
  • Development
  • Github
  • Windows
  • Gulp
  • WordPress
  • Woocommerce
  • PHP
  • Plugin
  • Development
  • Github
  • Windows
  • Gulp

Popular posts

  • Insert new woocommerce product programmatically
  • Add woocommerce category programmatically
  • Get_terms and invalid taxonomy
  • Assign woocommerce product categories programmatically
  • WordPress 4.7
  • Development,  WordPress

    Add theme support – basics

    September 30, 2016 /

    add_theme_support is very important functions for developing themes. Thanks to this function, you may add many cool features to your theme. And forget about title tag in your templates (since WordPress 4.1). Important notice: add_theme_support must be called before “init” hook is fired, because it is too late for some features. Use “after_setup_theme” hook or just put functions calls straight in your functions.php file. Example 1: functions.php [crayon-641f5c57bd7b0121806489/] Example 2: after_setup_theme hook [crayon-641f5c57bd7b8551554619/]

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    WordPress tables part 1

    September 15, 2016

    Add woocommerce category programmatically

    October 5, 2016

    Country codes as PHP array

    July 1, 2018
  • Development,  WordPress

    WordPress tables part 1

    September 15, 2016 /

    Some of you knows, that I write the book about WordPress programming. It is very slow process and I’m not even sure if I finish it this year. Of course I will try. While this process, I needed WordPress tables (I named it after mathematical tables, very popular before cheap-calculator arrived). So, I will try to give you a sample of it. WordPress actions muplugins_loaded registered_taxonomy (for “category”) registered_taxonomy (for “post_tag”) registered_taxonomy (for “nav_menu”) registered_taxonomy (for “link_category”) registered_taxonomy (for “post_format”) registered_post_type (for “post”) registered_post_type (for “page”) registered_post_type (for “attachment”) registered_post_type (for “revision”) registered_post_type (for “nav_menu_item”) plugins_loaded sanitize_comment_cookies setup_theme unload_textdomain (for “default”) load_textdomain (for “default”) after_setup_theme auth_cookie_malformed auth_cookie_valid set_current_user init registered_post_type…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Date and Time – PHP way – part 1

    June 27, 2017

    WordPress Toolbar a.k.a. Admin Bar

    December 23, 2016

    Using dollar sign $ and jQuery in WordPress

    March 20, 2016
  • Development,  WordPress

    Post class and Body class with WordPress

    September 12, 2016 /

    Classes in WordPress are important and commonly forgotten (in poor themes) elements. There are two main roles for classes, body class and post class. Of course we may get different post class set for each post. Body class body_class() is a shortcut for get_body_class() function. The easiest method to use it, is: [crayon-641f5c57be013428749525/] Of course we may add our custom class, to do that, just put it as a string or an array. You may do that like this: [crayon-641f5c57be019162640224/] or like this: [crayon-641f5c57be01a294771860/] The result will be absolutely the same. Of course you may use get_body_class() function, but you need to do something more. Like this: [crayon-641f5c57be01c079493168/] or like…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Date and Time – PHP way – part 3

    July 3, 2017

    Using native WordPress loading icons (spinners) in your plugins

    May 2, 2020

    WP_Import has a deprecated constructor in…

    January 3, 2016
  • Development,  WordPress

    How to hide toolbar (admin bar)?

    September 11, 2016 /

    Well, I like toolbar (note, that we call it toolbar, since WordPress 3.3 as far as I remember, we called it admin bar before that) and I do not need to hide it, but I know many people wants to. So, here is very simple code to do that thing: [crayon-641f5c57be20f972418858/] Please note, that this line will hide toolbar only on front-end! If you want to hide it on both frontend and in the admin panel (for god’s sake, why?) do that: [crayon-641f5c57be214825911695/] As easy as is.

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Using native WordPress loading icons (spinners) in your plugins

    May 2, 2020

    Deleting non empty directory

    October 3, 2016

    Using jQuery UI CSS in admin screen

    January 30, 2017
  • WordPress

    First security release – WordPress 4.6.1

    September 7, 2016 /

    Well, I wrote first, because every single piece of software has some errors and needs to be updated. What is good about WordPress – we get updates as soon as they are available. So, today we got WordPress 4.6.1 available to download, have fun! Fifteen bugs are fixed and ready to go on your site 🙂

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    First beta of WordPress 4.6

    July 1, 2016

    Billie Holiday

    August 18, 2015

    Say goodbye to Open Sans?

    May 6, 2016

Search site:

Categories:

  • Author
  • Development
  • Github
  • Gulp
  • PHP
  • PL
  • Plugin
  • Windows
  • Woocommerce
  • WordPress

Recent posts:

  • HTML Knowledge Base
  • Using native WordPress loading icons (spinners) in your plugins
  • Did you forget to signal async completion?
  • Country codes as PHP array
  • RODO i WordPress – wydanie 4.9.6
  • Enable multisite network
  • Showing all errors and warnings

Polish Internet Trends

  • PHP Speed Test (5.2 – 8.0)

Recent comments:

  • Łukasz Nowicki on Post/Page specific custom CSS
  • Daud on Post/Page specific custom CSS
  • Wojtek on Country codes as PHP array
  • Łukasz Nowicki on Assign woocommerce product categories programmatically
  • Kil on Assign woocommerce product categories programmatically
  • Martin Piñeiro on Insert new woocommerce product programmatically
  • Łukasz Nowicki on Your password reset link appears to be invalid. Please request a new link below.

Archives

  • May 2020
  • September 2018
  • July 2018
  • May 2018
  • February 2018
  • January 2018
  • December 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015
  • October 2014
  • September 2014
Ashe Theme by WP Royal.