WP Manifestindependent plugin directory
manifest / admin / cgit-wp-tweak-tool

Castlegate IT WP Tweak Tool archived

Tweaks various parts of the WordPress dashboard

by Castlegate IT · github.com/castlegateit/cgit-wp-tweak-tool · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/castlegateit/cgit-wp-tweak-tool/archive/refs/heads/master.zip

Readme

Castlegate IT WP Tweak Tool

Another plugin that makes it easy to tweak the WordPress admin interface, including:

  • Hide the admin toolbar
  • Edit the welcome message
  • Force plain text paste in the content editor

Options

Editing options

The options are stored as an associative array, with the following default values:

$options = [
    'force_plain_text_paste' => true,
    'hide_admin_bar' => false,
    'welcome_message' => false,
];

You can use the cgit_tweak_tool_options filter to edit the options:

add_action('init', function () {
    add_filter('cgit_tweak_tool_options', function ($options) {
        $options['hide_admin_bar'] = true;
        return $options;
    });
});

Note that the options are set in the init action with priority 20 so this filter must be applied earlier, either using a higher priority in the init action (the default value of 10 should work) or using an earlier action.

Editing the welcome message

If the custom welcome message contains %s, it will include the current user's display name using sprintf().

Changes since version 3.0

The following features have been removed:

  • Hide menu items in the Dashboard for non-admin users (hide_menus). We now recommend this is done on a per-site and per-theme basis.

  • Show navigation menu settings when appearance settings are hidden for some users (show_nav_menus). This feature is now provided by the Site Manager plugin.

  • Hide update notifications for non-admin users (hide_notifications). This feature is now provided by the Admin Notifications plugin.

  • Hide presentational markup (hide_editor_buttons), some block-level elements (hide_editor_elements), and media controls (hide_media_buttons) controls in TinyMCE. We now recommend this is done on a per-site and per-theme basis.

  • Hide templates and pages (hide_templates). We now recommend this is done with filters on a per-site and per-theme basis.

  • Move Yoast SEO fields to the bottom of the screen (move_yoast_to_bottom). This feature is now provided by the SEO Headings plugin.

License

Released under the MIT License. See LICENSE for details.

Read the full README on GitHub →

Releases

TagPublished
v3.0.3 Nov 27, 2023
v3.0.1 Nov 22, 2022
v2.4.0 Nov 27, 2020

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.