Custompress delete lin 10

Hi I have just installed custompress and have found the following.

In your instructions it states....

'But what if I want to enable CustomPress on specific sites only?
The easiest way to do this is to simply log into your site via FTP and go to wp-content/plugins/custompress/loader.php Simply open this file in your preferred code or text editor and delete line 10 - which simply has Network: true

This feature is still being tested and is why we currently limit it to network activation by default

.... however, this line does not appear to exist in the installed loader.php

Please advise.

Thanks

  • harryhayes
    • The Incredible Code Injector

    Hi Phil,

    Must be missing something as I do not seem to have this line?

    See paste, if it works below.

    Thanks

    Nick

    /* Define plugin version */
    define ( 'CP_VERSION', '1.1.9' );
    /* define the plugin folder url */
    define ( 'CP_PLUGIN_URL', WP_PLUGIN_URL . '/' . str_replace( basename(__FILE__), '', plugin_basename(__FILE__) ));
    /* define the plugin folder dir */
    define ( 'CP_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . str_replace( basename(__FILE__), '', plugin_basename(__FILE__) ));

    /* include CustomPress files */
    include_once 'core/core.php';
    include_once 'core/content-types.php';

    if ( is_admin() )
    include_once 'core/admin.php';

    /* Update Notifications Notice */
    if ( !function_exists( 'wdp_un_check' ) ) {
    add_action( 'admin_notices', 'wdp_un_check', 5 );
    add_action( 'network_admin_notices', 'wdp_un_check', 5 );
    function wdp_un_check() {
    if ( !class_exists( 'WPMUDEV_Update_Notifications' ) && current_user_can( 'install_plugins' ) )
    echo '<div class="error fade"><p>' . __('Please install the latest version of our free Update Notifications plugin which helps you stay up-to-date with the most stable, secure versions of WPMU DEV themes and plugins. More information »', 'wpmudev')

  • jhonatan1988
    • Design Lord, Child of Thor

    hi, i have the same problem, this is the file i can see and i dont know what to erase to enable only single site in a multisite.

    <?php
    /*
    Plugin Name: CustomPress
    Plugin URI: https://premium.wpmudev.org/project/custompress
    Description: CustomPress - Custom Post, Taxonomy and Field Manager.
    Version: 1.2.4.1
    Author: Ivan Shaovchev, Andrey Shipilov (Incsub), Arnold Bailey (Incsub)
    Author URI: https://premium.wpmudev.org
    Text Domain: custompress
    Domain Path: languages
    WDP ID: 163
    License: GNU General Public License (Version 2 - GPLv2)
    Network: false
    */

    $plugin_header_translate = array(
    __('CustomPress - Custom Post, Taxonomy and Field Manager.', 'custompress'),
    __('Ivan Shaovchev, Andrey Shipilov (Incsub), Arnold Bailey (Incsub)', 'custompress'),
    __('https://premium.wpmudev.org', 'custompress'),
    __('CustomPress', 'custompress'));

    /*
    Copyright 2011 Incsub, (http://incsub.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
    the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */

    /* Define plugin version */
    define ( 'CP_VERSION', '1.2.4.1' );
    /* define the plugin folder url */
    define ( 'CP_PLUGIN_URL', plugin_dir_url(__FILE__) );
    /* define the plugin folder dir */
    define ( 'CP_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    /* define the text domain for CustomPress */
    define ( 'CP_TEXT_DOMAIN', 'custompress' );

    /* include CustomPress files */
    include_once 'core/wpmudev-dash-notification.php';

    include_once 'core/core.php';
    include_once 'core/content-types.php';

    if ( is_admin() ) include_once 'core/admin.php';

    thanks for your help

  • aecnu
    • WP Unicorn

    Greetings jhonatan1988,

    Following the advice of this 7 month ticket will probably prove fruitless or perhaps even damaging since the plugin has undergone major changes since then to include the lead developer.

    If you are still having an issue please feel free to open your own ticket and copy and paste any relevant information from this old ticket to the new ticket.

    Thank you for being a WPMU Dev Community Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.