This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Plugin Name: DMCA content removal | |
Description: For DMCA content removal requests | |
Author: aaron-p9F6qB-2oq-p2 | |
*/ | |
function wpcom_dmca() { | |
if ( is_single( 1057 ) ) { | |
global $wp_query; | |
$wp_query->set_404(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add as many keys/values to the $mimes Array as needed | |
function gma_zen_1721841_custom_upload_mimes($mimes = array()) { | |
$mimes['kml'] = "application/xml"; | |
return $mimes; | |
} | |
add_action('upload_mimes', 'gma_zen_1721841_custom_upload_mimes'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const apiRoot = 'https://public-api.wordpress.com/', | |
articleContainer = document.querySelector('main#main'), | |
listPosts = {}; | |
/** | |
* init - Initialize the listing of posts | |
* | |
*/ | |
listPosts.init = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'submit_job_form_fields', 'gma_custom_submit_job_form_fields' ); | |
function gma_custom_submit_job_form_fields( $fields ) { | |
unset($fields['company']['company_name']); | |
unset($fields['company']['company_website']); | |
unset($fields['company']['company_tagline']); | |
unset($fields['company']['company_video']); | |
unset($fields['company']['company_twitter']); | |
unset($fields['company']['company_logo']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This snippet removes the “Listing Expires” column from Job Dashboard */ | |
add_filter( 'job_manager_job_dashboard_columns', 'remove_expires_column' ); | |
function remove_expires_column( $columns ) { | |
unset( $columns['expires'] ); | |
return $columns; | |
} | |
/* This snippet removes the “Listing Expires” column from All Jobs in wp-admin */ | |
add_filter( 'manage_edit-job_listing_columns', 'remove_expires_column_admin' ); | |
function remove_expires_column_admin( $columns ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Stop Jetpack Publicize sharing posts from the frontend job submit form entries | |
* | |
* @param $new_status | |
* @param $old_status | |
* @param $post | |
*/ | |
function prefix_flag_post_for_publicize( $new_status, $old_status, $post ) { | |
// Make sure the job_manager_form is set, it is the job_listing post type and the post status is publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ProceduralLevelGenerator : MonoBehaviour | |
{ | |
enum gridSpace { empty, floor, wall }; | |
gridSpace[,] grid; // 2D array of grid spaces that holds information about our map | |
int roomHeight, roomWidth; | |
//Vector2 roomSizeWorldUnits = new Vector2(30, 30); |
NewerOlder