This post was last updated on January 15th, 2017 at 06:10 pm
Using WordPress gettext filter is the easy way to change any text anywhere in our WordPress site. It is simple to use, and the main purpose of this filter is to allow us to change text
This post was last updated on January 15th, 2017 at 06:04 pm
In WordPress we’re not always working inside the WordPress loop. Working inside the loop, we use the template tag the_ID
, which easily get current page ID. But while working outside the loop then getting current page ID is
This post was last updated on January 6th, 2017 at 07:16 pm
do_action( string $tag, $arg = '' )
This function invokes all functions attached to action hook $tag
. It is possible to create new action hooks by simply calling this function, specifying the name of the new hook using the
This post was last updated on January 6th, 2017 at 07:16 pm
add_filter( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 )
“add_filter” is defined as a function that takes in some kind of input, modifies it, and then returns it.—for example, you might want to