Skip to content

Instantly share code, notes, and snippets.

@dlxsnippets
Last active August 7, 2022 06:13
Show Gist options
  • Save dlxsnippets/b9b7d3109694d5d0fafc88bd76839b33 to your computer and use it in GitHub Desktop.
Save dlxsnippets/b9b7d3109694d5d0fafc88bd76839b33 to your computer and use it in GitHub Desktop.
Enable Breadcrumbs in Rankmath
<?php
// I'm not sure which version, but Rankmath started requiring opt-in for themes.
// I think that's stupid. So I wrote this.
// Place as an mu-plugin or include via Code Snippets: https://wordpress.org/plugins/code-snippets/
add_action( 'after_setup_theme', function() {
add_theme_support( 'rank-math-breadcrumbs' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment