Giter Site home page Giter Site logo

tdmalone / theme-check-tdmalone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wordpress/theme-check

0.0 3.0 0.0 471 KB

The original Theme Check plugin, but modified to include an exclusions feature.

Home Page: https://wordpress.org/plugins/theme-check/

License: GNU General Public License v2.0

CSS 1.07% PHP 98.93%
wordpress wordpress-plugin theme-check tm-id-au

theme-check-tdmalone's Introduction

Theme Check with Exclusions

This is a forked and slightly modified copy of the Theme Check plugin by Samuel Wood. It adds the ability to exclude directories from your theme that you do not want checked (some common files and directories are excluded by default).

Note that you probably don't want to use this functionality when you're getting ready to submit the theme to the WordPress theme repo (because you really shouldn't have these files and directories there!). But it's great for development, when you likely need them!

See the original plugin's readme.txt here.

Installation

This plugin is not in the WordPress plugin repository. Because that would be confusing!

Instead, install it directly to your site.

With wp-cli:

wp plugin install --activate https://github.com/tdmalone/theme-check-tdmalone/archive/master.zip

Manually:

  • Download this ZIP file
  • Extract it into your wp-content/plugins directory
  • Rename the plugin directory - if you like - to remove the -master from it (but don't set it just to theme-check, unless you want updates from the WordPress plugin repo to override it with the original plugin)
  • Activate the plugin on your Plugins page in the WordPress admin

Usage

To use the plugin, just head to Appearance -> Theme Check in your WordPress admin. It's in the same place as the original plugin.

This plugin, however, automatically excludes some common files and directories that you might have sitting around during development.

You can modify these exclusions if you wish, with a filter in your theme:

add_filter( 'tm_theme_check_exclusions', function( $exclusions ) {

  // Add a directory.
  $exclusions[] = 'some-directory/';

  // Remove a directory.
  unset( $exclusions[ array_keys( $exclusions, 'node_modules/' )[0] ] );

  return $exclusions;

});

All files/folders provided are considered relative to the theme root, whether or not you include a leading slash.

License

GPLv2.

theme-check-tdmalone's People

Contributors

carolinan avatar davidrgreen avatar emiluzelac avatar ericnicolaas avatar ernilambar avatar florianbrinkmann avatar grappler avatar hardeepasrani avatar kniebremser avatar mh35 avatar obenland avatar otto42 avatar ramiy avatar rinkuyadav999 avatar tdmalone avatar websupporter avatar zodiac1978 avatar

Watchers

 avatar  avatar  avatar

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.