• 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-62fe9ddfa4999009754533/] Example 2: after_setup_theme hook [crayon-62fe9ddfa499e626984896/]

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Get_terms and invalid taxonomy

    April 26, 2016

    Did you forget to signal async completion?

    September 4, 2018

    WordPress: How to localize your JavaScript code?

    July 10, 2017
  • 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

    How to modify footer in admin screen

    January 22, 2017

    Using gulp to make your WordPress site runs faster

    January 26, 2017

    WordPress: How to localize your JavaScript code?

    July 10, 2017
  • 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-62fe9ddfa5007931955105/] 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-62fe9ddfa500b131678398/] or like this: [crayon-62fe9ddfa500c101498416/] 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-62fe9ddfa500e965655624/] or like…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Date and Time – PHP way – part 1

    June 27, 2017

    Assign woocommerce product categories programmatically

    October 5, 2016

    WordPress tables part 1

    September 15, 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-62fe9ddfa5169470300971/] 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-62fe9ddfa516c217342653/] As easy as is.

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Deleting non empty directory

    October 3, 2016

    Using dollar sign $ and jQuery in WordPress

    March 20, 2016

    Let’s build WordPress theme – part 1

    October 16, 2014
  • 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

    How to add WordPress Administrator using PHP

    October 14, 2014

    WordPress admin buttons once again

    December 16, 2016

    Security and Maintenance Release

    September 16, 2015

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.