Posts in Category: wordpress

Current page ID Inside or Outside the loop in WordPress

  • Update On January 15th, 2017
  • in WordPress

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

Read More

What’s the difference between add_action and add_filter in WordPress?

  • Update On January 6th, 2017
  • in WordPress

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

Read More