This file contains hidden or 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 | |
/** | |
* Plugin Name: WPSE70627 Post Format Permalink | |
* Description: Allow to use Post Format as Permalink; inlcude %post_format% in custom permalink | |
*/ | |
! defined( 'ABSPATH' ) and exit; | |
add_filter( 'post_link', 'post_format_permalink', 10, 2 ); | |
add_filter( 'post_type_link', 'post_format_permalink', 10, 2 ); |
This file contains hidden or 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
## .htaccess | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] | |
</IfModule> | |
## wp-config.php | |
define( 'FORCE_SSL_LOGIN', TRUE ); | |
define( 'FORCE_SSL_ADMIN', TRUE ); |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Attachment Taxonomies | |
* Plugin URI: attachment_taxonomies | |
* Text Domain: addquicktag | |
* Domain Path: /languages | |
* Description: | |
* Version: 1.0.0 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Keep me Logged In for 1 Year | |
* Plugin URI: https://bueltge.de/wordpress-login-unterbinden/1220/ | |
* Description: Set the time that the cookie will be kept at 1 year. | |
* Version: 0.0.3 | |
* Author: Frank Bültge | |
* Author URI: https://bueltge.de/ | |
*/ |
This file contains hidden or 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
$main-font-size: 16px; | |
@mixin x-rem ($property, $value) { | |
#{$property}: $value * $main-font-size; | |
#{$property}: #{$value}rem; | |
} | |
.some-class { | |
@include x-rem(font-size, 1.4); |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Deactivate oEmbed | |
* Description: Deactivate oEmbed in WordPress 3.5 and earlier | |
* Version: 0.0.1 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de/ | |
*/ | |
remove_filter( 'the_content', array( $GLOBALS['wp_embed'], 'autoembed' ), 8 ); |
This file contains hidden or 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 | |
/** | |
* Plugin Name: iFrame for TinyMCE | |
* Description: Allow iframe in the visual Editor | |
* Version: 0.0.1 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de/ | |
*/ | |
! defined( 'ABSPATH' ) and exit; |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Adsense after more-Tag | |
* Description: Add content of var $extra_more after more-Tag | |
* Version: 0.0.1 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de/ | |
*/ | |
! defined( 'ABSPATH' ) and exit; |
This file contains hidden or 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
// path/to/theme/tinymce/en.js | |
// plugin.jsと同じディレクトリに設置 | |
tinyMCE.addI18n("en.test_plugin",{ | |
test_listbox : "Test listbox", | |
test_button : "Test button", | |
}); |
This file contains hidden or 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 | |
/** | |
* @see: https://github.com/bueltge/Wordpress-Theme-Customizer-Custom-Controls | |
*/ | |
add_action( 'customize_register', 'fb_customize_register' ); | |
function fb_customize_register( $wp_customize ) { | |
require_once( 'class-taxonomy_dropdown_custom_control.php' ); | |
$wp_customize->add_section( |