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: AntiScript deamon | |
Plugin URI: https://github.com/franz-josef-kaiser | |
Description: Removes script-links to spam sites from your post content after your site got hacked. Please go to <a href="tools.php?page=script_deamon.php">Tools → Remove Hack</a>. Thank you. Proudly brought to you by <a href="http://example.com">Franz Josef Kaiser</a>. | |
Version: 0.1 | |
Author: Franz Josef Kaiser | |
Author URI: https://github.com/franz-josef-kaiser | |
License: GPL2 | |
WP-Version: Tested in 2.7.1, 2.9.2, 3.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
<?php | |
/** | |
* Plugin root | |
* @return Full Path to plugin folder | |
*/ | |
public function set_root_path() | |
{ | |
$_path = trailingslashit( str_replace( basename( __FILE__ ), "", plugin_basename( __FILE__ ) ) ); | |
// Allow overriding the location |
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 Easy Debug function | |
Plugin URI https://gist.github.com/1042827 | |
Description Allows the use of <code>_dump( $example_var );</code> or <code>_dump( 'example_global' );</code> for debugging variables. Collects everything in a global & prints in the footer (admin & public). If you want to not print, just return, then set <code>$hook</code> to <code>false</code> when calling the function. | |
Author Franz Josef Kaiser | |
Author URI https://github.com/franz-josef-kaiser | |
Version 0.1 | |
Options Version 0.1 | |
License MIT Extended |
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 | |
/** | |
* Adds a method from inside a class to an action hook. | |
* The method must be named exactly like the hook it's attached to. | |
* | |
* @param (string) $method | The called method/action to hook | |
* @param (integer) $priority | The priority the action hooks into | |
* @param (integer) $accepted_args | Number of arguments the hook accepts | |
* @return (boolean) | true on success, throws exception on failure. | |
*/ |
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: Codex Generator | |
Description: Creates ready-made wiki page content for Codex. With magic. Okay - with PHPDoc and Reflect. | |
Author: Rarst | |
Author URL: http://www.rarst.net/ | |
Version: 0.1 | |
License Notes: GPLv3+, includes modified Parser class from Doqumentor (GPLv3+) | |
*/ |
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: Your friendly "Current User Data" Deamon | |
Plugin URI: http://not-going-to-come-anytime.com | |
Description: Gives you an overview about any Data of the currently logged in user including all code to get or display it. Includes different code-approaches of user_role and the (depracated) user_level inside the code. So just take a look at the code and inline-comments. Makes a new menu at "Tools" > "Show User Data". | |
Version: 0.5 | |
Author: F. J. Kaiser | |
Author URI: http://unserkaiser.com | |
License: GPL2 | |
========================================================================= |
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 | |
/** | |
* Wordpress "Theme Errors API" | |
* | |
* @package Wordpress | |
* @subpackage Theme Errors API | |
* @since 3.4 | |
* @uses WP_Error | |
*/ |
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 | |
function remove_role_cap() | |
{ | |
// use with caution, as it could match some other capability name too | |
$target = 'SET PART OF CAP NAME TO CHECK FOR HERE'; | |
$roles = $GLOBALS['wp_roles']->role_objects; | |
// collect targeted caps in role objects | |
foreach ( $roles as $role ) | |
{ |
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
GNU GENERAL PUBLIC LICENSE | |
Version 2, June 1991 | |
//----------------------------------------------------------------------\\ | |
| | | |
| Copyright (C) 1989, 1991 Free Software Foundation, Inc., | | |
| 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | | |
| Everyone is permitted to copy and distribute verbatim copies | | |
| of this license document, but changing it is not allowed. | | |
| | |