Page-Level Settings: Native WP + Tiny Tweaks
Bare Bones SEO keeps your page-level management completely weightless. Instead of bloating your database with custom tables or loading heavy scanning scripts on every edit screen, we use the highly optimized metadata frameworks already built into the WordPress core.
We tap directly into your existing content fields and give you the manual dials to tweak them. Here is how it works under the hood.
How Meta Title & Description Overrides Work
The Native Setup: When rendering a page, WordPress uses its core theme engine to assemble the <head> section of your HTML. To output the browser title tag, it calls a highly optimized, native function named wp_get_document_title().
Our Tweak: We do not intercept or rewrite your theme’s header files. Instead, we drop a tiny filter into WordPress’s native title loop (document_title_parts). If you fill out a custom title or description in our page editor, we save it as a simple string inside the native wp_postmeta table. When WordPress goes to print the page title, our filter instantly hands it your custom text instead:
add_filter( 'document_title_parts', 'bare_bones_custom_title' );
function bare_bones_custom_title( $title_parts ) {
$custom_title = get_post_meta( get_the_ID(), '_bare_bones_meta_title', true );
if ( ! empty( $custom_title ) ) {
$title_parts['title'] = $custom_title;
}
return $title_parts;
}
Why it’s fast: Your server does zero parsing or heavy processing. Because WordPress natively fetches a page’s metadata the moment the post object loads into memory, checking for your custom title adds near-zero overhead to the page render.
How Robots Meta Tags (Noindex) Work
The Native Setup: WordPress includes a centralized Robots API that automatically outputs a <meta name="robots"> HTML tag inside your site header via the native wp_head event. Instead of letting themes or plugins hardcode conflicting tags, WordPress acts as a unified traffic controller, collecting indexing instructions into a clean array, converting them into a string, and printing them safely.
Our Tweak: Bare Bones SEO doesn’t inject separate tracking code or custom HTML strings. If you check the box to hide a page from search results, we store a basic toggle value in that post’s existing metadata. When WordPress builds its native header array, our filter checks that meta value and flips the core noindex value to true:
add_filter( 'wp_robots', 'bare_bones_page_noindex' );
function bare_bones_page_noindex( $robots ) {
if ( get_post_meta( get_the_ID(), '_bare_bones_noindex', true ) ) {
$robots['noindex'] = true;
}
return $robots;
}
- Why it’s fast: We are not running independent layout checks. We feed your page instructions directly into WordPress’s existing array payload, letting native core code handle 100% of the heavy lifting and tag output in a single, default loop.
How the Canonical URL Override Works
The Native Setup: To prevent duplicate content issues, WordPress automatically calculates and outputs a canonical link tag for every single page using its native rel_canonical() function.
Our Tweak: Instead of disabling this core feature and writing a custom tag tool, we use the native get_canonical_url filter to alter the target destination. If you supply a custom canonical URL on a page, our tweak intercepts WordPress’s calculation and replaces the default URL string with your manual override right before it prints to the screen:
add_filter( 'get_canonical_url', 'bare_bones_custom_canonical' );
function bare_bones_custom_canonical( $canonical_url ) {
$custom_canonical = get_post_meta( get_the_ID(), '_bare_bones_canonical', true );
if ( ! empty( $custom_canonical ) ) {
return esc_url( $custom_canonical );
}
return $canonical_url;
}
- Why it’s fast: No complex conditional routing or independent regex scanning. Because WordPress must filter the canonical URL hook on every page load anyway, our tweak performs a near-instant lookup in existing server memory and instantly steps aside if no custom link is set.
