• 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
WordPress

Video Widget – WordPress 4.8

As I mentioned two days ago, I will let you know about new features in WordPress 4.8. Today is time for Video Widget. This one is less powerful and more…

read more
May 29, 2017
Github, WordPress

Queen Inspirations

Hi guys, I wrote another WordPress plugin, read more here.

read more
December 9, 2016
Author

Happy PHP

Happy PHP update, it’s 7.0.7. Of course 7.7.7 would be more happier, but I assume we need to wait for that version if it will be ever available. 7.0.7 is…

read more
May 27, 2016
  • Development,  Woocommerce,  WordPress

    Finally here… required PHP version

    August 29, 2017 /

    I talked about it many times, I thought about it even more. However I was stupid enough not to talk about it to WordPress team. Well, somebody did. On March 2013 as far as I remember. And finally it is here… We can mark miminal required PHP version in plugins! And maybe in themes. It wasn’t very clear, but they mentioned themes As a next step, the WordPress core team is going look into showing users a notice that they cannot install a certain plugin or theme because their install does not meet the required criteria. I won’t test it, because I don’t have any themes in WordPress repository. [postad1]…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Showing all errors, warnings, notices…

    October 1, 2016

    Country codes as PHP array

    July 1, 2018

    Deleting non empty directory

    October 3, 2016
  • Development,  Github,  WordPress

    How to style widget description in admin menu?

    July 23, 2017 /

    Is it ever possible to style widget description in admin menu? Well, the short answer should be no, however longer answer should be yes, of course. You must keep in mind, that this method is a bit tricky. If you may avoid that, please do. If you have to style your widget description using html, well… this article is just for you. I found myself dumbfound when I realized I need to style widget description but… it’s impossible using normal WordPress actions, filter or hooks. WordPress is using `wp_sidebar_description` function to show widget description in admin panel and it is located in `\wp-includes\widgets.php`. When you take a look into source,…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Using native WordPress loading icons (spinners) in your plugins

    May 2, 2020

    Using dollar sign $ and jQuery in WordPress

    March 20, 2016

    WordPress admin buttons once again

    December 16, 2016
  • Development,  Github,  Plugin,  WordPress

    WordPress: How to localize your JavaScript code?

    July 10, 2017 /

    Update (on 17th July 2017) – see the bottom of the page. In WordPress, while writing theme or plugin, you should always keep in mind localization. Maybe your theme or plugin become so popular and someone would like to translate it into another language? It’s easy for me to think about localization, because I write my themes and plugins using english language and I usually add polish translation, because I’m Pole. So it isn’t very hard to achieve. Localization in WordPress is very easy. Let’s see one example from my plugin, Google Analytics Head. Plugins requires some information in the file header, like plugin name, description, author etc. There is…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Showing all errors and warnings

    January 8, 2018

    Post class and Body class with WordPress

    September 12, 2016

    Using gulp to make your WordPress site runs faster

    January 26, 2017
  • Author,  PL

    Panom i Paniom z HR pod uwagę

    July 6, 2017 /

    Czytam wiele postów w których rekruterzy doradzają programistom co mówić, czego nie mówić, jak prowadzić rozmowę. Cenna rzecz, na pewno. A już szczególnie z punktu widzenia rekrutera – co, oczywiście, pośrednio może wpłynąć i na los takiego biednego programisty. W tym zalewie informacyjnym chciałbym jednak zamieścić parę słów do rekruterów właśnie. Swoją drogą, mój słownik nie zna słowa rekruter. Zna rekieter ale czy to zabawna koincydencja czy nie, zależy zapewne od czytelnika i jego osobistych doświadczeń. Otóż, kochani, jeśli obiecujecie, że zadzwonicie o godzinie ósmej, to pamiętajcie, że ta dłuższa wskazówka sterczy w górę niczym… tutaj dla każdego coś miłego, a ta mniejsza – na bałwanku. Dzwonienie o czternastej, następnego…

    read more
    Łukasz Nowicki 2 Comments

    You May Also Like

    What PHP version do you use? Part 2.

    January 30, 2016

    Happy PHP

    May 27, 2016

    Happy New Year!

    January 1, 2017
  • Development

    Date and Time – PHP way – part 3

    July 3, 2017 /

    Today third and final part. Today we will talk mainly about `DatePeriod` class. It is very powerful tool, we can use it to iterate dates. How about iterating all Fridays? We like Fridays, because weekend starts, so… it is always good to know it’s Friday 🙂 Let’s begin…

    read more
    Łukasz Nowicki Comments Off on Date and Time – PHP way – part 3

    You May Also Like

    Different value and label of the input submit

    October 2, 2016

    Get woocommerce random products

    January 10, 2017

    Always remember about variable type

    February 12, 2017
  • Development

    Date and Time – PHP way – part 2

    June 30, 2017 /

    Where were we? Ok., I got it 🙂 Now we gonna talk about time intervals. You know that, sometimes we need to calculate one month and a few days for example. What to do? Let’s say we start something yesterday, on 29th June 2017 and this event will continue for one month and eleven days. Don’t ask me why. So, how to calculate this period of time? We start with the code you already know:

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    WordPress tables part 1

    September 15, 2016

    Using gulp to make your WordPress site runs faster

    January 26, 2017

    Woocommerce product category fields

    February 28, 2016
  • Development

    Date and Time – PHP way – part 1

    June 27, 2017 /

    Usually, when we speak about date and time, we think about `date`, `time` or `gmdate` (or many other names) functions and that is all right, we’ve got them and it works. But some of you may not be aware about `DateTime` class, built in PHP (since version 5.2 as far as I remember). First, the constructor. It can get two parameters – time and timezone. You may omit those two parameters, then time will be set to ‘now’ and timezone will be set to null. What does it mean? It will give you current time in your default timezone (default for the server of course). You may also get current…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Different value and label of the input submit

    October 2, 2016

    Always remember about variable type

    February 12, 2017

    Let’s build WordPress theme – part 1

    October 16, 2014
  • Development,  WordPress

    Add meta boxes on Front Page only without template

    June 18, 2017 /

    I am rewriting one of my old pages into WordPress theme and I needed some meta boxes. But for front page only. I don’t need them to be show on any other page. It isn’t very hard to do, you just need to check template meta. But I don’t want to use template. I got `front-page.php` file to view front page and that’s it, I don’t need specialized template. So, what to do? It’s pretty easy. First, we need to hook into meta-box action. It’s simple and well known, but… Here’s the code:

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Using jQuery UI CSS in admin screen

    January 30, 2017

    Do you like WordPress admin buttons?

    December 12, 2016

    Date and Time – PHP way – part 1

    June 27, 2017
  • WordPress

    Multisite – WordPress 4.8

    June 6, 2017 /

    What? Multisite? Of course I mean changes to multisite networking. First thing first. The goal is to remove is_super_admin function. We still have it and it isn’t deprecated yet. Even more, WordPress 4.8 still uses this function. But still (third time!) it is planned, so we need something in spare. WordPress 4.8 bring us two new capabilities: setup_network – if your site is single instance, this capability is mapped to manage_options and if you run multisite it is mapped to manage_network_options, upgrade_network – this one isn’t mapped, it is granted for network administrators. Besides new capabilities, we have four new hooks related to multisite. Those are: minimum_site_name_length – this one…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    WordPress 4.3 Release Candidate

    July 30, 2015

    Add woocommerce category programmatically

    October 5, 2016

    Get woocommerce random products

    January 10, 2017
  • WordPress

    Link Boundaries and WordPress events – WordPress 4.8

    June 4, 2017 /

    Today two new features. First one, link boundaries is very very clever and helpful. Have you ever added a link to your post? Of course you did. If you didn’t – then… well, you may skip this post. But i bet you did, so… how many times you need to edit this link or text nearby? Well, it might happen. And then what? Sometimes you write text and you’ve got unwanted link on it, sometimes you want to expand anchor and you got plain text… Not nice at all. With WordPress 4.8 you will see exactly link boundaries with small, non modal (of course!) pop-up. You can’t go wrong anymore…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Post class and Body class with WordPress

    September 12, 2016

    WP_Import has a deprecated constructor in…

    January 3, 2016

    Woocommerce product category fields

    February 28, 2016
 Older Posts
Newer Posts 

Search site:

Categories:

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

Recent posts:

  • WooCommerce – HPOS
  • 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

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 2025
  • 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.