How do I avoid having duplicate of plugin in trunk?

I do not know which OS and/or software you use but regarding SVN it’s quite simple : $ svn co http://plugins.svn.wordpress.org/your-plugin-name Then you just have to add your files in trunk and/or maybe in assets (banner,screenshots). Then : $ svn add trunk/* and or : $ svn add assets/* Last step is : $ svn … Read more

Looking for advice for a mail sending plugin

There is no need for a custom table here – you can use the user metadata table and API. Then create a WP-Cron job to run every 24 hours (or more frequently if you’re paranoid). On the callback query users who’ve registered in the last 7 days using something like: /* * Get all users … Read more

How to multiply a post to test internal search results?

Well, there are ways to duplicate posts, but I don’t think that’s what you need. Check out http://wordpress.org/plugins/bulk-content-creator/, which is probably exactly what you’re after, and allows you to create many posts at once for test purposes. Otherwise, check out http://codex.wordpress.org/Theme_Unit_Test where you can get test content.

Edit / Change Jetpack Mobile Theme [closed]

I see 3 ways to edit Jetpack Mobile theme: 1. Use Jetpack’s Custom CSS module Jetpack includes a module named “Custom CSS” that allows you to add your own custom CSS without having to edit your theme stylesheet. The custom CSS editor (under Appearance > Edit CSS) also includes an option to include this custom … Read more

How to connect rating to individual comments?

This is almost entirely an HTML and/or Javascript question. You just need to make proper forms and have some PHP to process it. function additional_fields ($below) { global $comment; $ratsec=”<form action=””.get_permalink().'” method=”get” class=”comment-form-rating”>’; $ratsec .= ‘<input type=”hidden” name=”p” value=”‘.get_the_ID().'”‘; $ratsec .= ‘<label for=”rating”>’. __(‘Rating’) . ‘<span class=”required”>*</span></label>’; $ratsec .= ‘<span class=”commentratingbox”>’; //Current rating scale is … Read more

How to create Admin Notice from Plugin with argument? [duplicate]

This would be an good use PHP 5.3+ anonymous functions. Closure example: <?php function Twit_the_url( $post_ID ) { //connect to twitter api //send tweet with url //get twitter response //send response to admin notice : add_action(‘admin_notices’, function() use ($httpstatus) { echo ‘<div class=”error”><p>’, esc_html($httpstatus), ‘</p></div>’; }); return $post_ID; } add_action( ‘publish_post’, ‘Twit_the_url’); Alternatively, you could … Read more

Taxonomy Drill-Down / Plugin Help – hierarchical queries within plugin?

I had done some work for my upcoming theme which shows category tree (Taxonomy drill down) from custom taxonomy. You can show it on taxonomy page or on category page. if(! defined(‘TH_TAX_TYPE’)) define(‘TH_TAX_TYPE’,’your-tax-type’); function is_decendent($term_id,$main_parent) { $terms= get_term_by(‘id’, $term_id,TH_TAX_TYPE); $parent_term= get_term_by(‘id’, $terms->parent,TH_TAX_TYPE); $grand_parent_term= get_term_by(‘id’,$parent_term->parent,TH_TAX_TYPE); if($terms || $grand_parent_term){ if($grand_parent_term->term_id==$main_parent){ return TRUE; } } return FALSE; } … Read more