View BootupTapdaqCallbacks.java
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
package com.company.myawesomeapp; | |
import android.content.Context; | |
import android.view.Display; | |
import android.view.Surface; | |
import android.view.WindowManager; | |
import com.tapdaq.sdk.Tapdaq; | |
import com.tapdaq.sdk.TapdaqCallbacks; |
View WP Post Formats Adding New Field
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 new field under gallery post format forms ui | |
add_action( 'vp_pfui_after_gallery_meta', 'mytheme_add_gallery_type_field' ); | |
// handle the saving of our new field | |
add_action( 'admin_init' , 'mytheme_admin_init' ); | |
function mytheme_admin_init() { | |
$post_formats = get_theme_support('post-formats'); | |
if (!empty($post_formats[0]) && is_array($post_formats[0])) { | |
if (in_array('gallery', $post_formats[0])) { |
View WP regenerate attachment meta data
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 | |
// get all attachments | |
$attachments = get_posts( array( | |
'post_type' => 'attachment', | |
'posts_per_page' => -1, | |
) ); | |
foreach($attachments as $attach) | |
{ |
View hgignore_forget
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
hg forget "set:hgignore() and not ignored()" |