As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
/** | |
* Helper class for controlling all aspects of a view. | |
* | |
* Supported methods (automatically hooked): | |
* - init() - for registering post types, taxonomies, rewrite rules etc. | |
* - parse_query() - for correcting query flags | |
* - pre_get_posts() - for altering the query, without affecting the query flags | |
* - posts_search(), posts_clauses(), posts_request() - for direct SQL manipulation | |
* - the_posts() - for various other manipulations | |
* - template_redirect() - for enqueuing scripts etc. |
<?php | |
add_action( 'registered_taxonomy', array( 'APP_Tax_Admin_Column', 'register_column' ), 10, 3 ); | |
/** | |
* Generates a column with the associated terms, | |
* for any taxonomy with 'show_admin_column' => true | |
*/ | |
class APP_Tax_Admin_Column { |
<?php | |
class Marko_Shortcodes { | |
public function __construct() { | |
add_shortcode( 'engine_info', array( $this, 'engine_info' ) ); | |
} | |
public function engine_info( $atts ) { | |
global $wp_version, $wpdb, $batcache, $wp_object_cache; |
This gist is for showing an example of a custom wordpress menu.
If you want to get more from the menu item simply have a look at the $item object. i.e:
// Will return a large object with lots of props like title, url, description, id etc.
var_dump( $item );
This code works on Wordpress 4.1.1 as of 31st of March 2015
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
// html | |
<label for="year">Год</label> | |
<select name="year" id="year"></select> | |
<label for="month">Месяц</label> | |
<select name="month" id="month"> | |
<option value = "1">01</option> | |
<option value = "2">02</option> | |
<option value = "3">03</option> | |
<option value = "4">04</option> |