Created
December 15, 2013 18:25
-
-
Save deckerweb/7976348 to your computer and use it in GitHub Desktop.
Mini-Zusatz-Plugin für "Jetpack Deutsch (de_DE)": Benutzerdefinierte Filter für das Plugin "Jetpack German (de_DE)".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Custom Jetpack German (de_DE) | |
* @author David Decker | |
* @copyright Copyright (c) 2013, David Decker - DECKERWEB | |
* @license GPL-2.0+ | |
* @link http://deckerweb.de/twitter | |
* | |
* @wordpress-plugin | |
* Plugin Name: Custom Jetpack German (de_DE) | |
* Plugin URI: http://deckerweb.de | |
* Description: Benutzerdefinierte Filter für das Plugin "Jetpack German (de_DE)". | |
* Version: 1.0.0 | |
* Author: David Decker - DECKERWEB | |
* Author URI: http://deckerweb.de/ | |
* License: GPL-2.0+ | |
* License URI: http://www.opensource.org/licenses/gpl-license.php | |
* | |
* Copyright (c) 2013 David Decker - DECKERWEB | |
*/ | |
/** | |
* Exit if accessed directly | |
* | |
* @since 1.0.0 | |
*/ | |
if ( ! defined( 'WPINC' ) ) { | |
exit( 'Sorry, you are not allowed to access this file directly.' ); | |
} | |
add_action( 'plugins_loaded', 'ddw_cjpde_custom_filters', 5 ); | |
/** | |
* Benutzerdefinierte "Jetpack German (de_DE)"" Filter. | |
* | |
* Die Filter unten je nach Wunsch auskommentieren, d.h. die zwei Slashes am | |
* Anfang einer Zeile entfernen. | |
* | |
* Filter-Info 'jpde_filter_loading_location': | |
* - Standard, voreingestellt: '__jpde_load_in_both' (Frontend + Adminbereich) | |
* - Alternative 1: '__jpde_load_in_frontend_only' (nur im Frontend) | |
* - Alternative 2: '__jpde_load_in_admin_only' (nur im Adminbereich) | |
* | |
* @since 1.0.0 | |
*/ | |
function ddw_cjpde_custom_filters() { | |
/** Nur weitermachen, wenn "Jetpack German (de_DE) aktiv ist */ | |
if ( ! defined( 'JPDE_PLUGIN_BASEDIR' ) ) { | |
return; | |
} | |
/** Benutzerdefinierte Filter: */ | |
//add_filter( 'jpde_filter_set_formal', '__return_true' ); | |
//add_filter( 'jpde_filter_load_add_ons', '__return_false' ); | |
//add_filter( 'jpde_filter_loading_location', '__jpde_load_in_frontend_only' ); | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment