Head

Add PHP code to header section from plugin

Add PHP code to header section from plugin

Option 1: Use a plugin

  1. Option 1: Use a plugin.
  2. Go to the configuration panel of the plugin.
  3. Under the "Page head and footer" tab, add the tracking code to the section which says "Code to be added to the HEAD section of every page":
  4. Option 2: Add directly to the header.php file.

Setting custom cookies with time out in Wordpress
How do I set session timeout in WordPress? How do I create a custom cookie in WordPress? How do I view cookies in WordPress? How do I enable secure co...
Is there a way to programmatically enable a plugin?
How do I enable programmatically plugins in WordPress? How do I activate plugins? How do I stop WordPress plugins from loading on specific pages and p...
How to get all post categories without custom post type categories?
How can I get custom post type category? How do I display custom post type categories in WordPress? How do I remove custom post type? How do I find th...