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 | |
/* | |
Plugin Name: WP Boss - YOURLS Custom URL Parameters | |
Plugin URI: https://www.wpboss.com.br/ | |
Description: Manages long link exit URL parameters | |
Version: 1.0 | |
Author: John (João Elton Moreto) | |
Author URI: https://www.wpboss.com.br/ | |
This plugin is based on "Google Analytics" plugin, by Katz Web Services, Inc. Reference link: http://katz.co/yourls-analytics/ |
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
// Put this on your theme's functions.php | |
add_action( 'init', 'q11_remove_soliloquy_license_stuff', 999 ); | |
function q11_remove_soliloquy_license_stuff() { | |
// Do nothing if Soliloquy is not active. | |
if ( !class_exists('Soliloquy') && !is_admin() ) { | |
return; | |
} | |
if (is_admin()) { |
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 | |
/** | |
* Plugin Name: WP Boss // Sanitizar nome de arquivo no upload | |
* Plugin URI: https://www.wpboss.com.br/dicas-truques/renomear-limpar-nomes-arquivos-midia-fazer-upload-wordpress/ | |
* Description: Este plugin renomeia e limpa nomes de arquivos de mídia do WordPress durante o upload. | |
* Version: 1.0 | |
* Author: João Elton Moreto <[email protected]> | |
* Author URI: https://www.wpboss.com.br/ | |
* License: GPL-2.0+ | |
*/ |
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
function q11_redirect_uri_site_antigo() { | |
if ( is_404() ) { | |
$url = 'INSERT_YOUR_DOMAIN_HERE' . $_SERVER['REQUEST_URI']; | |
$end = end(explode('/', rtrim($url, '/'))); | |
if ($end) { | |
if ( $post = get_page_by_path( $end, OBJECT, array('post', 'page'))) { | |
$id = $post->ID; | |
} else { |
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
// Adds the current editing post's ID to body_class in WordPress admin | |
// Add this code in your theme's funtions.php | |
function post_id_to_body_admin($pid) { | |
$screen = get_current_screen(); | |
if ( 'post' == $screen->base ) { | |
global $post; | |
$pid .= ' post-id-' . $post->ID; | |
return $pid; | |
} | |
} |
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
/** | |
* Plugin Name: Multiple Roles per User | |
* Description: Allows anyone who can edit users to set multiple roles per user. In a default WordPress environment that wouldn't have much of an effect, since the user would have the privileges of the top-privileged role that you assign to him. But if you have custom roles with custom privileges, this might be helpful. | |
* Version: 1 | |
* Author: nikolov.tmw | |
* Author URI: http://paiyakdev.com/ | |
* License: GPL2 | |
*/ | |
/* | |
Copyright 2013 Nikola Nikolov (email: [email protected]) |