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
<?php | |
// PHP memory limit for this site | |
define( 'WP_MEMORY_LIMIT', '128M' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
// Database | |
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
// Explicitely setting url |
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
//maps.googleapis.com | |
//maps.gstatic.com | |
//fonts.googleapis.com | |
//fonts.gstatic.com | |
//ajax.googleapis.com | |
//apis.google.com | |
//google-analytics.com | |
//www.google-analytics.com | |
//ssl.google-analytics.com | |
//youtube.com |
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
name: Version checks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
# Compares the header information in the readme.txt and the main plugin file |
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 submitButtons = document.querySelectorAll("input[type='submit']"); | |
submitButtons.forEach( formButton => { | |
formButton.addEventListener( | |
"click", | |
function (evt) { | |
__gaTracker( | |
"send", | |
"event", | |
"form", | |
"conversion", |
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
<?php | |
// update utc time for tribe events | |
function wpuf_update_event_details( $post_id, $form_id, $form_settings, $form_vars ) { | |
if ( !empty( $post_id ) && !empty( $form_settings['post_type'] ) && $form_settings['post_type'] == 'tribe_events' ) { | |
$eventStartDate = isset( $_POST['_EventStartDate'] ) ? $_POST['_EventStartDate'] : ''; | |
$eventEndDate = isset( $_POST['_EventEndDate'] ) ? $_POST['_EventEndDate'] : ''; | |
if ( !empty( $eventStartDate ) || !empty( $eventEndDate ) ) { | |
update_post_meta( $post_id, '_EventStartDateUTC', $eventStartDate ); |
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
<?php | |
function wpuf_sections_customize($sections){ | |
$posts_tab_index = null; | |
foreach ($sections as $index => $value) { | |
if ($value['slug'] == 'posts') { | |
$posts_tab_index = $index; | |
} | |
} |
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
<?php | |
function wpuf_post_edit_link() { | |
global $post; | |
$edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_frontend_posting' ); | |
$post_id = $post->ID; | |
$url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) ); | |
return wp_nonce_url( $url, 'wpuf_edit' ); | |
} |
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
<?php | |
function wpuf_default_featured_image() { | |
return "https://mahbub.me/wp-content/uploads/2017/01/i.png" | |
} | |
add_filter( "wpuf_no_image", "wpuf_default_featured_image" ); |
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
/** | |
* Don't change these constants! | |
*/ | |
const DODGER = document.getElementById('dodger') | |
const GAME = document.getElementById('game') | |
const GAME_HEIGHT = 400 | |
const GAME_WIDTH = 400 | |
const LEFT_ARROW = 37 // use e.which! | |
const RIGHT_ARROW = 39 // use e.which! | |
const ROCKS = [] |
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
afghanistan : Afghanistan | |
albania : Albania | |
algeria : Algeria | |
american_samoa : American Samoa | |
andorra : Andorra | |
angola : Angola | |
anguilla : Anguilla | |
antigua_and_barbuda : Antigua and Barbuda | |
argentina : Argentina | |
armenia : Armenia |
NewerOlder