Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Created March 30, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Willem-Siebe/d0a2ba73cc3b980f1165 to your computer and use it in GitHub Desktop.
Save Willem-Siebe/d0a2ba73cc3b980f1165 to your computer and use it in GitHub Desktop.
Changing heading element level from TablePress tables, see https://gist.github.com/Willem-Siebe/d0a2ba73cc3b980f1165.
add_filter( 'tablepress_print_name_html_tag', 'wsis_tablepress_change_table_name_h2_to_h4', 10, 2 );
function wsis_tablepress_change_table_name_h2_to_h4( $tag, $table_id ) {
$tag = 'h4';
return $tag;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment