Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
enhanced php doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bueltge committed Sep 3, 2012
1 parent 7c74b9c commit 2b56dd7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions remove-comments-absolute.php
Expand Up @@ -6,7 +6,7 @@
* Domain Path: /languages
* Description: Deactivate comments functions and remove areas absolutely from the WordPress install
* Author: Frank Bültge
* Version: 0.0.8
* Version: 1.0.0
* Licence: GPLv3
* Author URI: http://bueltge.de/
* Upgrade Check: none
Expand Down Expand Up @@ -39,22 +39,23 @@ public function __construct() {
add_filter( 'add_menu_classes', array( $this, 'add_menu_classes' ) );

// remove items in dashboard
add_action( 'admin_footer-index.php', array( $this, 'remove_comments_areas' ) );
add_action( 'admin_footer-index.php', array( $this, 'remove_comments_areas' ) );

// chane admin bar items
add_action( 'wp_before_admin_bar_render', array( $this, 'admin_bar_render' ) );

// remove string on frontend in Theme
add_filter( 'gettext', array( $this, 'remove_theme_string' ), 20, 3 );
add_filter( 'gettext', array( $this, 'remove_theme_string' ), 20, 3 );

// remove comment feed
remove_action( 'wp_head', 'feed_links', 2 );
add_action( 'wp_head', array( $this, 'feed_links' ), 2 );
remove_action( 'wp_head', 'feed_links', 2 );
add_action( 'wp_head', array( $this, 'feed_links' ), 2 );

// remove default comment widget
add_action( 'widgets_init', array( $this, 'unregister_default_wp_widgets' ), 1 );
add_action( 'widgets_init', array( $this, 'unregister_default_wp_widgets' ), 1 );

// remove comment options in profile page
add_action( 'personal_options', array( $this, 'remove_profile_items' ) );
add_action( 'personal_options', array( $this, 'remove_profile_items' ) );
}

/**
Expand Down Expand Up @@ -260,6 +261,13 @@ public function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Recent_Comments');
}

/**
* Remove options for Keyboard Shortcuts on profile page
*
* @since 09/03/2012
* @param void
* @return void
*/
public function remove_profile_items() {
?>
<script type="text/javascript">
Expand Down

0 comments on commit 2b56dd7

Please sign in to comment.