We expect from get_the_title to return a title. If we don't return a value with our function, there will be an error. That's the difference we explained above.
When using add_filter, we can decide to accept the post ID or just the title. Let's say that we want to get the date from it and put it in the title.
And we need to make if there is nothing retrieved from ID, just return the provided title.
Now that we covered how to hook our functions to filters and action, what about removing them?
Sometimes, customizing a site can involve removing already registered actions and filters.
When calling functions to remove them, you need to specify the exact priority as well.
I investigated a bit the success of Potion.so. Mostly because I am thinking of building in public. So let’s see how @noahwbragg is building in public and after only 10 months of opening the product to public, he went full-time. #buildinpublic
@noahwbragg This thread is really long, so if you want to see all his tweets on Potion, you can use this in the Twitter search (and replace YEAR-MONTH-DAY): (Potion OR SaaS OR Notion OR saas) (from:noahwbragg) until:YEAR-MONTH-DAYsince:YEAR-MONTH-DAY -filter:replies
- Share ups and downs while building the product
- Uses YouTube to showcase features or talks about behind the scenes
- Showcasing how others are using Potion or what can be built with it
In ~6 hours, I'll publish a set of 60 tweets about how @noahwbragg built @potion_so and went full-time. Before that, do know that he is also a co-host of the podcast @pjourneypod with @digitaltrouble. Here is a list of episodes that mention Potion! Chronologically. #buildinpublic