Move into wp-content path

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-08-31 00:48:20 +02:00
parent f523d8ccc0
commit 3724cc6edd
342 changed files with 108652 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
/*-----------------------------------------------------------------------------------*/
/* Pluginsupport - special filters and hooks for plugins
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
/* Reset canonical URL for wpSEO
/*-----------------------------------------------------------------------------------*/
add_filter(
'wpseo_set_canonical',
function($input) {
if (is_single()) {
$canonical = get_post_meta( get_the_ID(), 'pirate_rogue_canonical', true );
if ($canonical) {
$canonical = esc_url( $canonical );
if ($canonical) {
return $canonical;
}
}
}
return $input;
}
);
/*-----------------------------------------------------------------------------------*/
/* Plugin TinyMCE: Button für Seitenumbruch ergänzen
/*-----------------------------------------------------------------------------------*/
add_filter( 'mce_buttons', 'kb_add_next_page_button', 1, 2 );
function kb_add_next_page_button( $buttons, $id ) {
if ( 'content' === $id ) {
array_splice( $buttons, 13, 0, 'wp_page' );
}
return $buttons;
}
/*-----------------------------------------------------------------------------------*/
/* Oh no! Here is the end!?!
/*-----------------------------------------------------------------------------------*/