I found answer i do not need to return value, i must echo it.
So my function should look like:
function custom_description(){
echo '<meta name="description" content="cococo" />';
}
This works !
Related Posts:
- Hook into wp_head(); in a plugin
- Searching hook to set cookies before and avoid “headers already sent”
- Why does wp_enqueue_script ignore my ‘wp_head’ hook?
- How To Make Sure That My Action Hook Executes Last
- How to replace a function using a child theme?
- Would there be anything stopping me from removing both wp_head and wp_footer?
- Add PHP code to header section from plugin
- How to remove a meta description or other contents
- Removing action from template class
- How to get WordPress’ hooks/actions run sequence?
- How many times can I hook into the same action?
- Is there a hook before the user is authenticated?
- Hook into WordPress update?
- switch_to_blog(): Load textdomain
- Can I hook inside another hook?
- Adding function directly vs using hook in function.php
- How can I send to multiple Contact Form 7 recipients based on form input? [closed]
- What is the action hook for save media-form on gallery tab?
- Wp_update_post: Infinite loop even with remove_action solution, OOP
- Check if action hook exists before adding actions to it
- Post-Registration, post-meta hook?
- Removing action added from constructor
- after login that will redirect user role into a page
- Create hooks based on an array of hook names?
- Access post meta just after publishing
- update post meta using user_register hook not working
- how to create endpoint for downloading pdf files?
- hook to get (and change) the search string before processing
- Is there a recover_post hook to go with trash_post hook?
- How to override languages files in wp-content/languages/themes with child theme
- hooks & filters and variables
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- Run add_action hook if condition
- Gutenberg gallery hook errors
- How to change title attribute returned by comments_popup_link()?
- How to use do_action_ref_array?
- Problem using role_has_cap hook
- How to find hooks as per Just-In-Time approach?
- WordPress action and filter hooks runs asynchronously?
- Prevent attachment from being deleted
- Update post meta using pending_to_publish hook
- Get log of function/method calls made by do_action() on WordPress initialization
- Is it possible to change image urls by hooks?
- User update hook
- Get all posts with a duplicate name
- Save acf field data via acf/save_post before post is saved
- register_activation_hook not updating
- Redirect customer to login if not logged in when proceeding to checkout
- PHP header() gives headers already sent
- Send along login credentials with comment content
- WP_query hooks before execute a search query
- How to pass argument to wp_footer hook with data from a template
- Removing a Filter
- Which action hook should I use to intercept a form upon submission?
- Redirecting from login
- How to use a 3rd party library to send emails?
- I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types) [duplicate]
- Woocommerce table is missing a heading–can I add it by use of a hook?
- Use a variable created in get_header to calculate stuff in wp_footer
- register_deactivation_hook argument -> pass arguments in the selected function
- Alternative to new_to_publish Hook for Custom Statuses
- How to use a WooCommerce action hook?
- Force file download in WordPress
- How to use pre_get_posts
- hooks for automatic approve user registration according to data in custom fields
- How to render an element, that was saved as a template, using a hook?
- How to use embed_content hook?
- Notify admin when Custom post meta data gets updated or deletet
- WP Cron not executing after timespan
- Action hook with wrapper html
- call php file from form and use wp functions
- wp_insert_post hook for a wordpress plugin
- WordPress add_action the_post hook
- Post via wp-admin and via iOS app, same hooks and triggers involved?
- add_action hook for links.php page
- Hooking after blog info update
- Hook to add_action(‘updated_option_my_option’, [$this, ‘save_data’], 10, 3]);
- Session management issues with WordPRess 404 Error page
- Template_redirect works, but headers aren’t sent when checking via cURL
- template_redirect hooks redirect wrong URL
- Registered custom dynamic tag not appearing
- Add a Call to Action Button to WordPress Post Thumbnail
- How to hook add_action() into after category description with id?
- What hook can you use to get the full response?
- Easy Digital Downloads – How to use hooks correctly?
- Updating a related post’s “post_modified” value
- adding wordpress yoast SEO canonical url from “transition_post_status” hook
- Cookie cant be read even cookie is present
- How to create callback function which returns all posts with specific data?
- How to trigger click events using hooks
- remove_action() hook not working
- Why the post ID is 0 in a hook within wp_insert_post_data?
- Function Hooked on Init Running Multiple Times
- How to work with hooks and Posts to posts plugin?
- template_redirect and title
- When is get_currentuserinfo() needed?
- disable publish button until condition is not met
- How do I remove an action hook by s2member
- How do I change TinyMCE button “i” to create a i tag rather than em? [duplicate]