Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /** | |
| * Configure Admin Approval for New Accounts | |
| * http://gravitywiz.com/ | |
| */ | |
| remove_filter('wpmu_signup_user_notification_email', array('GFUserSignups', 'modify_signup_user_notification_message')); | |
| add_filter('wpmu_signup_user_notification_email', 'my_modify_signup_user_notification_message'); | |
| function my_modify_signup_user_notification_message() { | |
| return false; | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| # Register custom post types on the 'init' hook. | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 1.0.0 | |
| * @access public |
| <?php | |
| add_filter( 'jetpack_get_available_modules', 'prefix_hide_jetpack_modules' ); | |
| /** | |
| * Disable all non-whitelisted jetpack modules. | |
| * | |
| * As it's written, this will allow all of the currently available Jetpack | |
| * modules to work display and be activated normally. | |
| * | |
| * If there's a module you'd like to disable, simply comment it out or remove it | |
| * from the whitelist and it will no longer be available for activation. |
| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
| -- Create syntax for TABLE 'wp_swp_cf' | |
| CREATE TABLE `wp_swp_cf` ( | |
| `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
| `metakey` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', | |
| `term` int(20) unsigned NOT NULL, | |
| `count` bigint(20) unsigned NOT NULL, | |
| `post_id` bigint(20) unsigned NOT NULL, | |
| PRIMARY KEY (`id`), | |
| KEY `metakey` (`metakey`), | |
| KEY `term` (`term`), |
| <?php | |
| /** | |
| * Plugin Name: Multisite: Passwort Reset on Local Blog | |
| * Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb | |
| * Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process. | |
| * Version: 1.0.0 | |
| * Author: Eric Teubert | |
| * Author URI: http://ericteubert.de | |
| * License: MIT | |
| */ |
| <?php | |
| return array( | |
| "post_type" => "park", | |
| "post_status" => "publish", | |
| "posts_per_page" => 100 | |
| ); |
| (function(){ | |
| /** | |
| * Create a new MediaLibraryTaxonomyFilter we later will instantiate | |
| */ | |
| var MediaLibraryTaxonomyFilter = wp.media.view.AttachmentFilters.extend({ | |
| id: 'media-attachment-taxonomy-filter', | |
| createFilters: function() { | |
| var filters = {}; | |
| // Formats the 'terms' we've included via wp_localize_script() |