Skip to content

Instantly share code, notes, and snippets.

View vyskoczilova's full-sized avatar

Karolína Vyskočilová vyskoczilova

View GitHub Profile
@vyskoczilova
vyskoczilova / wordpress-remove-seo-columns.php
Last active December 3, 2017 18:45 — forked from chuckreynolds/wordpress-remove-seo-columns.php
remove WordPress SEO columns from admin post tables
<?php
function my_manage_columns( $columns ) {
// remove the Yoast SEO columns
unset( $columns['wpseo-score'] );
unset( $columns['wpseo-title'] );
unset( $columns['wpseo-metadesc'] );
unset( $columns['wpseo-focuskw'] );
unset( $columns['wpseo-score-readability'] );
@vyskoczilova
vyskoczilova / replace_from_the_archive_tittle.php
Last active July 10, 2016 21:00
WP - Replace“Category:”, “Tag:”, “Author:” from the_archive_title
<?php
add_filter( 'get_the_archive_title', function ($title) {
// archiv rubriky
if ( is_category() ) {
$title = single_cat_title( 'Archiv rubriky' , false );
// archiv štítku
} elseif ( is_tag() ) {
@vyskoczilova
vyskoczilova / remove_from_the_archive_tittle.php
Last active November 28, 2017 10:02
WP - Remove “Category:”, “Tag:”, “Author:” from the_archive_title
<?php
add_filter( 'get_the_archive_title', function ($title) {
// archiv rubriky
if ( is_category() ) {
$title = single_cat_title( '', false );
// archiv štítku
} elseif ( is_tag() ) {