Author: Rakesh Lawaju
-
Gutenberg List all Blocks
If you want to get list of all blocks then you can use getBlockTypes from block store. We can use @wordpress/blocks package to retrieve block store. useSelect hook from @wordpress/data package will be used to access getBlockTypes function from block store. It can only be used in a component. Here is an example
-
Career Opportunities In WordPress ( WordPress Kathmandu Meetup)
Last Sunday I gave a presentation at WordPress Kathmandu Meetup on Topic “Career Opportunities In WordPress”. The meetup was organized at Bhaktapur Multiple Campus. Here is a link to my presentation. Career Opportunities In WordPress by Racase Lawaju (Rakesh Lawaju)
-
Regex to match any number of white spaces
Incase we need to find any number of white spaces like for following silly example Here I want to replace header with another selector for example “section{“. So we want to match “header” tag, white spaces and “{” so that we only replace header selector. This is how we do in JavaScript: This is how…
-
HTML5 textarea placeholder not appearing
I encountered a weird issue while working on a form. I added a textarea and its placeholder attribute but the place holder attribute was not showing. Here is my initial code. I google it and found this stackoverflow link and gave me the solution. Solution: We need to have textarea opening and closing tag in…
-
Customer Acquisition
I learned many things from the past 7 year’s mistakes in product development journey and in less than 6 months those learning helped us to acquire new customers that is more than half of what we acquired in the past 7 years.
-
Luxon JS useful functions
Date time to unix timestamp: Convert to different timezone Get users current timezone
-
Moment JS useful functions
List all timezones Date time to unix timestamp: Convert to different timezone Get users current timezone