2017 © Pedro Peláez
 

wordpress-muplugin ti-whitelabel

Whitelabel WordPress Admin area.

image

thoughtsideas/ti-whitelabel

Whitelabel WordPress Admin area.

  • Wednesday, August 23, 2017
  • by thoughtsideas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 167 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 33 % Grown

The README.md

[TI] Whitelabel

license GitHub release Build Status Packagist Packagist GitHub issues Libraries.io for GitHub, (*1)

Rebrand your WordPress install's in to match your company or clients branding., (*2)

Dependencies

Installation

We recommend installing this dependency via Composer., (*3)

As a Composer Dependency

To include these standards as part of a project. Require this repository as a development dependency:, (*4)

composer require thoughtsideas/ti-whitelabel

Making Your Changes

Make your changes locally on a new branch based off origin/master. Commit your changes to your new branch and regularly push your work to the same named branch on the server. When you need feedback or help, or you think the branch is ready for merging, open a pull request. After someone else has reviewed and signed off on the feature, you can merge it into master., (*5)

Documentation

During the Alpha/Beta stages, due to constant changes, documentation will be mainly written in-line. With a dedicated section being created at the first major release., (*6)

Customize WordPress Login

Custom CSS

/**
 * Apply our custom styles to the WordPress Login page.
 *
 * @param  array $defaults Default values set by the plugin.
 * @return array           Our modified styles.
 */
function my_customized_login_css( $defaults ) {

    $args = array(
        'background-color' => 'SlateGray', // Accepts all CSS color values.
        'logo'             => array(
            'url'             => get_theme_mod( 'custom_logo' ), // Relative or absolute.
            'width'           => '275px', // Accepts all CSS units.
            'height'          => '100px', // Accepts all CSS units.
        ),
        'color'             => 'rgb(51, 51, 51)', // Accepts all CSS color values.
        'link'             => '#ffffff', // Accepts all CSS color values.
        'hover'            => 'hsl(0, 0%, 0%)', // Accepts all CSS color values.
    );

    return wp_parse_args( $args, $defaults );
}

add_filter(
    'ti_whitelable_login_css',
    'my_customized_login_css'
);

Custom Header URL

/**
 * Apply our custom url to the WordPress Login page logo.
 *
 * @param  string $default  Default values set by the plugin.
 * @return string           Our modified value.
 */
function my_customized_header_url( $default ) {

    return 'https://thoughtsideas.uk';

}

add_filter(
    'ti_whitelabel_login_header_url',
    'my_customized_login_header_url'
);

Custom Header Title

/**
 * Apply our custom heading text to the WordPress Login page logo.
 *
 * @param  string $default  Default values set by the plugin.
 * @return string           Our modified value.
 */
function my_customized_header_title( $default ) {

    return 'Thoughts & Ideas - Simplifying your promotion.';

}

add_filter(
    'ti_whitelabel_login_header_title',
    'my_customized_login_header_title'
);

Customize WordPress Admin

/**
 * Apply our custom admin footer text to the WordPress admin page.
 *
 * @return string           Our modified value.
 */
function my_customized_admin_footer_text() {
    return sprintf(
        '%1$s <a href="%3$s" target="_blank">%2$s</a>.',
        esc_html( 'Created by' ),
        esc_html( 'Thoughts & Ideas' ),
        esc_url( 'https://www.thoughtsideas.uk/' )
    );
}

add_filter(
    'ti_whitelabel_admin_footer_text',
    'my_customized_admin_footer_text'
);

The Versions

23/08 2017

dev-master

9999999-dev https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

23/08 2017

dev-feature/travis-wordpress-tests

dev-feature/travis-wordpress-tests https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

23/08 2017

dev-fix/travis-coding-standards

dev-fix/travis-coding-standards https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

23/08 2017

v0.2.1

0.2.1.0 https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

21/08 2017

v0.2.0

0.2.0.0 https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

21/08 2017

dev-feature/custom-admin-credit

dev-feature/custom-admin-credit https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo

20/07 2017

0.1.0

0.1.0.0 https://github.com/thoughtsideas/ti-whitelabel/

Whitelabel WordPress Admin area.

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.6

 

The Development Requires

wordpress wp composer seo