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

Queen Inspirations

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

read more
December 9, 2016
Development, WordPress

WordPress Toolbar a.k.a. Admin Bar

First things first. Why WordPress Toolbar a.k.a. Admin Bar? Well, a lot of people knows Toolbar as Admin Bar. Still. To be honest, it was Admin Bar. It was Admin…

read more
December 23, 2016
WordPress

It’s still 4.2… 4.2.4

We are still waiting for WP 4.3 and in a meantime, we’ve got new security release marked 4.2.4. This version is fixing four bugs and six security issues. If you…

read more
August 4, 2015
  • 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

    Showing all errors and warnings

    January 8, 2018

    How to get rid of Open Sans and save admin bar?

    August 1, 2016

    Assign woocommerce product categories programmatically

    October 5, 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

    How to add your custom css or js on admin screen?

    January 12, 2017

    Add woocommerce category programmatically

    October 5, 2016

    Let’s build WordPress theme – part 3

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

    HTML Knowledge Base

    May 5, 2020

    Google Analytics

    October 8, 2016
  • 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… [crayon-641f5855ab0a0842937366/] And results: [crayon-641f5855ab0a3674050777/] I think this is self explanatory code. Please remember three things. One – I used next friday as an interval. If you use last friday you’ll get your iterator iterating downwards, so you may end in the year of -9999 🙂 Two – $item is DateTime object, you may do whatever you want as it’s normal object Three…

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

    You May Also Like

    Do you like WordPress admin buttons?

    December 12, 2016

    How to modify footer in admin screen

    January 22, 2017

    How to hide toolbar (admin bar)?

    September 11, 2016
  • 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: [crayon-641f5855ab1d6506846392/] The result is very easy to predict. Then, let’s clone $start_date object as $end_date and add date period to $end_date object like this: [crayon-641f5855ab1d9330387882/] Results are: [crayon-641f5855ab1db704058650/] So, we know that one month and…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Date and Time – PHP way – part 1

    June 27, 2017

    Using native WordPress loading icons (spinners) in your plugins

    May 2, 2020

    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

    Assign woocommerce product categories programmatically

    October 5, 2016

    WP_Import has a deprecated constructor in…

    January 3, 2016

    Woocommerce product category fields

    February 28, 2016
  • 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: [crayon-641f5855ab4a8568135498/] Next step is also easy as pie. We need to compare current object ID with page…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Always remember about variable type

    February 12, 2017

    Get_terms and invalid taxonomy

    April 26, 2016

    Insert new woocommerce product programmatically

    March 6, 2016
  • 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.8 Release Candidate

    May 25, 2017

    Woocommerce product category fields

    February 28, 2016

    How to modify footer in admin screen

    January 22, 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

    Third beta

    November 12, 2016

    WordPress 4.7.2

    January 26, 2017

    Programmatically create and login user into WordPress

    December 2, 2017
  • WordPress

    Text Widget – WordPress 4.8

    June 2, 2017 /

    You may ask – what do you mean, text widget? We know text widget since… I don’t know, since big bang! Or maybe even longer! Yes, you do. And I know it, too. But this is updated text widget and it is really worth to take a look at it. Default text widget, even in WordPress 4.7.5 is very easy. It’s just a title, content and optionally you may set adding paragraphs automatically. Very easy solution and obviously outdated. So, how it looks now? Well, it’s still title and content. Automatic paragraphs option is missing… So, why it is better? Because it looks much more like text editor for posts…

    read more
    Łukasz Nowicki 1 Comment

    You May Also Like

    Security release 4.4.1

    January 7, 2016

    WordPress 4 is here

    September 4, 2014

    Let’s build WordPress theme – part 3

    October 31, 2014
 Older Posts
Newer Posts 

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.