View wpmudev-debug-tools.php
<?php
/*
Plugin Name: WPMU DEV Tools
Plugin URI: https://premium.wpmudev.org/
Version: 0.3
Description: Shows diagnostic information about the current server environment as well as tests cURL connectivity to <a href="https://premium.wpmudev.org" target="_blank">premium.wpmudev.org</a> and displays the debug.log. <br /><strong>Notice</strong>: This plugin utilizes <a href="http://php.net/manual/en/function.shell-exec.php" target="_blank">shell_exec()</a>. This must be enabled in PHP for full functionality.
Author: WPMU DEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
View remove-admin-notices.php
<?php
// Removes Notices from WordPress Admin pages.
function remove_admin_notices() {
remove_all_actions( 'admin_notices' );
echo "<style>.wp-admin .notice {display:none !important;}</style>";
}
add_action( 'admin_head', 'remove_admin_notices' );
View before-after-content.php
<?php
// This particular example adds Hustle Social Sharing shortcode after content without editing template files on single posts/pages only.
function jmorris_before_after($content) {
$beforecontent = '';
if ( is_single() ) {
$aftercontent = '[wd_hustle_ss id="jmorris-online"]';
} else {
$aftercontent = '';
}
$fullcontent = $beforecontent . $content . $aftercontent;
View tools.php
<?php
/**
* Script Name: WPMU DEV SLS Diagnostics
* Script URI: https://premium.wpmudev.org/
* Description: Misc diagnostic tools used by WPMU DEV SLS Tech Support
* Author: WPMU DEV
* Version: 0.1
* Author URI: https://premium.wpmudev.org/
*
*/
View geotag-wp.php
<?php
/*
Plugin Name: Geotag my posts
Description: Allows you to add location context to your posts, pages or custom post types.<br />Activate the Add-on and then select which post-types you want to geotag. After this you will find a new metabox in the post editor where you can enter an address. <br>To display a map with all geo-tagged posts use the shortcode <code>[agm_gwp_geocoded_posts]</code>
Example: [agm_gwp_geocoded_posts]
Plugin URI: http://premium.wpmudev.org/project/wordpress-google-maps-plugin
Version: 1.0
Author: Ve Bailovity (Incsub)
*/
View wrap-text-with-html-jquery.js
<script>
//Add HTML elements around text strings inside of a parent element.
jQuery("div.feature-text:contains('products')").html(function(_, html) {
return html.split('products').join("<a class='a'>products</a>");
});
jQuery("div.feature-text:contains('100')").html(function(_, html) {
return html.split('100').join("<a class='b'>100</a>");
});
</script>
View remove-wp-admin-menu.php
<?php
/*
Plugin Name: Remove WordPress Admin Menu
Plugin URI: https://premium.wpmudev.org/support/
Description: A simple mu-plugin that removes the WordPress menu from the Admin menu.
Version: 0.0.1
Author: James Morris - WPMU DEV
Author URI: https://premium.wpmudev.org/profile/jrmorris77
Network: true
*/
View curltest.php
<?php
if (isDEVAvailible('http://premium.wpmudev.org'))
{
echo "<h1>premium.wpmudev.org is Up and running!</h1>";
}
else
{
echo "<h1>Woops, nothing found at premium.wpmudev.org.</h1>";
}
View disable-admin-notice.php
<?php
add_action('admin_head', 'disable_notice');
function disable_notice() {
echo '<style>
.wp-core-ui .notice.is-dismissible {
display: none;
}
</style>';
}
View custom-login.php
<?php
// This changes the color of the login page
function hook_css() {
?>
<style>
body.login {
background: #006699;
}
</style>
<?php