To get the value in header section

I started to develop a plugin and i write the code bellow

add_filter('get_header', 'my_postslide');

It is calling the function in body part, but now i want to get the value in the header part. It means in the <header> </header> part.Please let me know what the appropriate hook for call the value in the "<header> </header>" part.


Use the wp_headhook. see here in WordPress codex :

Tags: Wordpress / Plugins

Similar questions

Get "Image CSS Class" value from the Advanced Options section
By default, WordPress allows to add an extra class to the image via Advanced Options section: If I know the image (attachment) ID then how can I get this value? I tried get_post_meta function but it did not show me that extra class. So, I am assuming I need to use an another function to retrieve the value.
I have value in my wp_postmeta table like a:1:{i:0;s:1:"5";}.....I need to get the last value.that is the value inside the " ".in wordpress
I am working on Wordpress. I use custom fields and one of the field category contains field type as taxonomy. While inserting,the postmeta table contains this JSON value: a:1:{i:0;s:1:"5";}. I need to get the value inside the " ".That is 5.
How to add section above header for custom post types
I want to include a horizontal section at the very top of my site, above the header, that shows the next six events. I've created a custom post type called "events", and I've created about 150 events. That's all fine, but what I'm having trouble with is figuring out how to create this new section above the header to get these events to display. Wou...
Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
I have CPT "Dealers" and a custom tax of "States" where each post in the CPT is associated to one state. The hope is to create the header for the state then list each post in that state taxonomy under it; and only show the state header if at least one post is associated with it. All this does right now is display the STATE as the h3 class="state" t...
How to style injected code in header section?
Trying to add custom code to header section <head>..</head>of the blog by adding this code to child-theme functions.php Actually, this code add this result to html header: as you can see, the generated meta tags are displayed in the header section but directly before </head>. Also, all meta tags are on the same line. What i need e...
Unable to remove space between header and slider section in wordpress website
I am creating a wordpress website ( Currently I am stuck with the following problem: i want to remove the white space between the header and the slider. After spending 2 to 3 hours, i am still unable to remove the space between these two section of div. Here is the div section: header id="header" class="col-full...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.