• 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

    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-641f66eb9131f805181011/] 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-641f66eb91328114982384/] Results are: [crayon-641f66eb9132c576714289/] So, we know that one month and…

    read more
    Łukasz Nowicki 0 Comments

    You May Also Like

    Using gulp to make your WordPress site runs faster

    January 26, 2017

    How to hide toolbar (admin bar)?

    September 11, 2016

    How to modify footer in admin screen

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

    Do you like WordPress admin buttons?

    December 12, 2016

    Deleting non empty directory

    October 3, 2016

    Country codes as PHP array

    July 1, 2018
  • 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-641f66eb920ab092118902/] 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

    Using native WordPress loading icons (spinners) in your plugins

    May 2, 2020

    Did you forget to signal async completion?

    September 4, 2018

    Deleting non empty directory

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

    Let’s build WordPress theme – part 2

    October 16, 2014

    Get woocommerce random products

    January 10, 2017

    Finally here… required PHP version

    August 29, 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

    Symbolic links – test your themes and plugins

    January 5, 2017

    Say goodbye to Open Sans?

    May 6, 2016

    Get woocommerce random products

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

    Video Widget – WordPress 4.8

    May 29, 2017

    How to style widget description in admin menu?

    July 23, 2017

    WordPress 4.5 Coleman

    April 12, 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.