Coder Social home page Coder Social logo

factmaven / disable-blogging Goto Github PK

View Code? Open in Web Editor NEW
36.0 6.0 8.0 694 KB

Turn WordPress into a non-blogging CMS platform. Disable Blogging is a plugin that disables all blog related functionalities (posts, comments, feeds, etc.) on the front-end and back-end. This results in a cleaner and simpler WordPress platform to be used for static websites.

Home Page: https://wordpress.org/plugins/disable-blogging/

PHP 97.93% CSS 2.07%
wordpress disable-blogging wordpress-plugin php css improvements settings blog test admin-dashboard

disable-blogging's Introduction

Disable Blogging in WordPress Version Downloads Rating


Turn WordPress into a non-blogging CMS platform without code. Disable Blogging is a plugin that disables all blog related functionalities on the front-end and back-end. This includes posts, comments, feeds, and so much more. As a result, you will have a cleaner and simpler WordPress platform to be used for static websites.

Read more on WordPress

Featured Articles

Disable Blogging been mentioned in a variety of reputable articles around the world, here's what some of them have to say.

Easily disable blog features in WordPress without writing any code. — WPBeginner

Disable Blogging should be especially interesting for developers that often develop and sell pure business websites without a blog. — NOUPE

The next time you or a client wants an easy way to disable WordPress’ blogging capabilities, give this plugin a shot. — WP Tavern

The good thing about Disable Blogging is it stays true to its name. It does not delete or remove any of the data and information and only hides the blogging related functions. — DevotePress

It is the right plugin for you if you do not need the blogging feature in WordPress. — Hongkiat

It's simple but extremely useful. — WPcanban

It removes all the blogging features you do not need when you use WordPress for websites or even niche pages. — Nischenseiten Guide

Contributors

We'd like to thank those who've helped improve our plugin: Piet Bos, SECT, Christian Jongeneel, John A. Huebner II, Maël Conan, CotswoldPhoto

As well as those who've spotted bugs for us: Benjamin Danon, Saumya Majumder, youpain, Bart Kuijper Timothée Moulin, vee w, Niels Lange, Damian

disable-blogging's People

Contributors

dkress59 avatar ethanosullivan avatar nielslange avatar sectsect avatar spartelfant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

disable-blogging's Issues

filter for disabling reordering of menu

Love the plugin, can you add some type of a filter to not reorder the admin menu to put pages at the top? While I want to disable blogging on a site I don't really want the menu order changed, at least on the current site I am working on since things like products are more important than pages.

Thanks,

~JH

Manage Comments link in admin bar not hidden (multisite)

I've installed the plugin and it works perfectly. However I realised that in multisite mode, the Manage Comments link in the toolbar menu for each site is not being hidden (however the linked page is properly redirected).
I am using the following to hide these links, and I thought you may add it to your plugin.

if ( is_multisite() ) {
  foreach ( get_sites() as $site ) {
    switch_to_blog( $site->blog_id );
    $blog_settings = get_option( 'factmaven_dsbl_general' );
    if ( is_array( $blog_settings ) || is_object( $blog_settings ) ) {
      if ( $blog_settings['comments'] == 'disable' ) {
        $wp_admin_bar->remove_node( "blog-{$site->blog_id}-c" );
      }
    }
    restore_current_blog();
  }
}

The code is to be added to the toolbar_menu function (called by the wp_before_admin_bar_render action) in includes/functions-general.php.
I tested it, it works well - not sure if there is a better method.
Luca

Gutenberg glitch

Wordpress 5.6 shows a severe glitch in Gutenberg when disable-blogging is active. Please fix soon because this is a real showstopper 😅

Edit: Suddenly the issue is gone on my site … weird!

Plugin disabled:
disabled
Plugin enabled:
enabled

Disable Gravatar when disabling comments

If you disable Gravatar by means of WP's own discussion settings, then disable comments using this plugin, suddenly Gravatar appears be enabled again. For example a Gravatar image will be loaded by the admin bar.

If you then re-enable comments and visit WP's discussion settings, Gravatar is also enabled again.

PS: Awesome plugin! <3 Huge thank you from my side.

The plugin throws foreach() warnings

The plugin is throwing PHP warning.

1 at settings-page.php line 101 for invalid argument inside the foreach() and another error like this:

PHP Warning: Invalid argument supplied for foreach() in /home/example/public_html/example/wp-admin/includes/plugin.php on line 1422

Please make it stop. It is making my error_log file inside wp-admin huge.

Disable alternative "Howdy," greetings in different languages

As stated in this support thread:

I just see that the “‘Howdy,’ greeting” not work with languages other than the default “en_US” (in French it’s “Salutations,” and in English (en_GB) it’s “How are you,”)..
Before your plugin I usually use this piece of code to remove this greeting (It’s more bully than yours :))

Infinite redirect loop on the wp-login page

I just install your plugin (1.2.1) and when it’s enabled, I cannot access wp-login and wp-cron anymore. It seems that redirect_canonical() in dsbl_feeds() makes WordPress to redirect to /wp-login.php/ and /wp-cron.php/ (with a trailing slash). I use a standard configuration on nginx and PHP-FPM.

Fatal error with the setup WooCommerce

As stated here:

Can you change your function line 121 from functions-extra.php

because i get fatal error when i run the setup of woocommerce, like this :

Fatal error: Uncaught Error: Call to a member function remove_help_tabs() on null in /home/youpain/public_html/**********(private)/wp-content/plugins/disable-blogging/includes/functions-extra.php:63 Stack trace: #0 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(298): Fact_Maven_Disable_Blogging_Extra->help_tabs('') #1 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/youpain/public_html/**********(private)/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/youpain/public_html/**********(private)/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php(150): do_action('admin_head') #4 /home/youpain/public_html/**********(private)/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php(125): WC_Admin_Setup_Wizard->setup_wizard_header() #5 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php(298): WC_Admin_Setup_Wizard->setup_wizard('') #6 /home/youpain/public_html/**********(private)/wp-includes/class-wp-hook.php in /home/youpain/public_html/**********(private)/wp-content/plugins/disable-blogging/includes/functions-extra.php on line 63

Handling of Activity on the Dashboard

Hi @factmaven,

This is a proposal because it might be different from the purpose of this Plugin.
I'm using this Plugin to remove the default post type post.
In many cases, I have multiple custom post types.

Recent Posts and Recent Draft in activity on dashboard should be modified to all custom post types other than default post type post rather than be removed.

What do you think about it?

Category field on Menu

Hey guys, maybe is not to be a issue, but i was managing menu itens on my theme and i saw the "category" fields to select, like below:
image

should this be hidden?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.