I hereby claim:
- I am khromov on github.
- I am khromov (https://keybase.io/khromov) on keybase.
- I have a public key whose fingerprint is 8A0D 8C75 FCCE FACE 4053 88C5 8F7D 1DB4 F63C 1D5C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!-- IDG DFP wp_head --> | |
| <script type="text/javascript"> | |
| var gptadslots = []; | |
| /* Only load ads on the initial page load, although enquire may try to run the again if user resizes their window */ | |
| var dfpIsInitialPageLoad = true; | |
| var googletag = googletag || {}; | |
| googletag.cmd = googletag.cmd || []; | |
| var dfpUnitName = "<?=$DFP_UNIT_NAME?>"; |
| <?php | |
| /** | |
| * Helper function for including templates | |
| * | |
| * @param $template | |
| */ | |
| function include_template($template, $args) | |
| { | |
| extract($args); |
| <?php | |
| acf_form(array( | |
| 'id' => 'your-form', | |
| 'post_id' => 'new_post', | |
| 'new_post' => array( | |
| 'post_type' => 'post', | |
| 'post_status' => 'publish', | |
| 'post_author' => get_current_user_id() | |
| ), | |
| 'field_groups' => array('group_544f441dc5661', 'group_544f49a3060b0', 'group_5451dc41933e4'), //Your ACF groups |
| <?php | |
| /** | |
| * Shortcode for displaying a link from the ACF Link Picker addon. | |
| * | |
| * Usage: | |
| * [acf_link_picker] | |
| * -or- | |
| * [acf_link_picker field="myfield"] | |
| */ | |
| add_shortcode( 'acf_link_picker', function ( $atts, $content = '' ) { |
| $tmp = function() { | |
| ?> | |
| <?php | |
| }; |
| <?php | |
| add_filter('pre_option_image_default_size', function($value) | |
| { | |
| return 'large'; //Set to whatever you wish | |
| }); |
| <?php | |
| /* | |
| Plugin Name: capital_P_dangit performance test | |
| Plugin URI: | |
| Description: Use shortcode on any page: [capital_P_dangit_performance count="10000"] | |
| Version: 1.0 | |
| Author: khromov | |
| Author URI: http://snippets.khromov.se | |
| License: GPL2 | |
| */ |
| <?php | |
| /* | |
| Plugin Name: Your Plugin | |
| Plugin URI: http://snippets.khromov.se/a-nicer-way-to-structure-your-plugin/ | |
| Description: Your plugin skeleton | |
| Version: 1.0 | |
| Author: you | |
| Author URI: http://your-site.com | |
| License: GPL2 | |
| */ |
| <?php | |
| /* | |
| Plugin Name: Simple Popular Posts Lite | |
| Plugin URI: - | |
| Description: - | |
| Version: 2015.03.01 | |
| Author: khromov | |
| Author URI: http://snippets.khromov.se | |
| License: GPL2 | |
| */ |