Check this out
function custom_title($title_parts) {
$title_parts['title'] = "Page Title";
return $title_parts;
}
add_filter( 'document_title_parts', 'custom_title' );
In custom_title
, $title_parts
contains ‘title’, ‘page’ (the pagination), ‘tagline’ (the slogan you specified) and ‘site’. Set “title” the way you like.
Related Posts:
- How to convert Currency from USD to other IP Based currency in Php function
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- WordPress user account activation
- wp_footer hook only working on homepage not in other pages
- External Script Using WP – Hooks / Actions Not Working?
- WordPress does not show products when the value of post_parent is not 0
- URL parameters causing 404 on home page, but nowhere else
- Which filter affects the ‘entry-title’ post class
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Filtering get_permalink in Jetpack / ShareDaddy
- Inject HTML meta tag inside wordpress tag using add_shortcode
- WordPress api call using wp-ajax returns error 400
- Proper way to replace the_content only for pages created by custom plugin
- add_filter doesn’t work
- Redirect to another page using contact form 7? [closed]
- Template filter for custom taxonomy terms
- Is there a way to figure out which action/filter invoked a function?
- WordPress stats API key
- Add sub menu page in your plugin
- Plugin is a widget, but I want to call it in the head, can I?
- Using add_action before add_filter on a plugin?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Check if variable is set in filter
- Socialite WP plugin, unable to obtain API keys from FB
- What exactly happens to function argument availability when using a filter?
- How to pass the API key to the client from the database? [closed]
- Prevent plugin from intruding on wp-json posts api
- Getting a Page via its post-name using WP REST API v2 and Postman
- Passing stored variables to add_filter
- Modify page title and subtitle with a plugin
- override filter in a plugin
- Check filter defined or not?
- remove_action not removing add_action from constructor
- How can I apply a WP filter on specific plugin version
- Editing wp-config.php
- How to set category correctly for a custom post created by a remote API call?
- Adding Plugin Assets to Header
- Integrating boxtal PHP library into a custom WordPress Plugin
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- How to use the pre_option filter before a plugin loads?
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Custom API plugin to execute 3rd party API to retrieve data
- Change text string in a plugin
- wp_enqueue_style on template_redirect level?
- How to use filter to disable adding a product to wishlist?
- correctness of URL
- WordPress: Add custom add_filter for custom functions
- How to manipulate the content within wp_head
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- Sending customer an email with link to stripe to make payment
- Override a Plugin Function
- Api external with wordpress
- How to get a list of all the available plugins names
- How can ι create my own (custom) WordPress table/list?
- How do I change where a plugin pulls updates from?
- Can I filter a function created by a theme or a plugin?
- How to have free shipping for WooCommerce Membership members
- How to use apply_filters?
- Grab ID from post from plugin and use it to create an object
- Add a function call after content automatically?
- Hook for altering the content of all wp mails
- what is the point of telling add_filter how many parameters you want passed to the function?
- Can i use init hook for API purpose?
- How to add filter for wordpress plugin?
- How to use add_action for multiple instances of the same class
- How to Use the Filter “sidebar_login_widget_form_args”
- is there a way to pass a parameter to a add_menu_page function?
- How to hook into action/filter call
- Filters on the_content with plugins, pages and shortcode
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Filtered content appears in the excerpt
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- Looking for a filter to modify the months
- What’s the best way to echo out a filter variable?
- Edit post image attributes on fly?
- Excluding specific post from custom next/previous theme function
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Want to create custom design of progress indicator in wpforms
- Use a hook or filter, or overwrite this Gamipress function?
- Add hook after content without formatting
- How do I display PHP file contents on front end of WordPress?
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- Push Contact form 7 variable to front end after submission
- post title not changing at post page
- Using OR Condition with facetwp facets
- How i remove specific script from header?
- Unpublished Pages Failing To Appear On Custom Path
- Escape commas in REST API
- Randomize post (and page) IDs on generation
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- Ability to change homepage on WordPress using API
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- Making a list that can be filtered by category/tags
- Do i need to use a plugin for third party api integration?
- Adding an item to an anonymous array inside a filter?
- Loading a plugin in a post template without using wp_head()
- taxonomy_template filter not working on pagination [duplicate]
- is it possible to fetch data from a remote api while admin is writing a new post?