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 | |
file : delete-comment/readmore.php | |
?> | |
<?php | |
/* | |
Plugin Name: Instant Delete Comment | |
Plugin URI: http://example.com/ | |
Description: Add a quick link to instantly delete comments | |
Author: Ozh | |
Version: 1.0 |
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
readmore |
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
<SCRIPT TYPE="text/javascript"> | |
var data = { | |
action: 'boj_myplugin_do_ajax_request', | |
some_var: 'some value', | |
other_var: 'other value' | |
}; | |
jQuery.post( 'http://example.com/wp-admin/admin-ajax.php', data, function( resp ) { | |
/* | |
1. process response object 'resp' | |
2. update part of page |
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
<script type="text/javascript"> | |
// When the DOM is ready, add behavior to the link | |
$(document).ready(function(){ | |
$('#load').click(function(){ | |
load_tweets(); | |
// Skip default behavior (ie redirecting to the link href) | |
return false; | |
}); | |
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
(function($){ | |
$.fn.center = function(){ | |
var element = this; | |
$(element).load(function(){ | |
changeCss(); | |
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
Format endpoint |
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 | |
/* | |
Plugin Name: Products Permalink Structure | |
Plugin URI: http://example.com/ | |
Description: Create a whole permalink structure | |
Version: 1.0 | |
Author: Ozh | |
Author URI: http://goo.com | |
*/ | |
// Add permalink structure and flush on plugin activation |
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
User Favorite Post |
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 | |
/* | |
Plugin Name: User Contact Methods | |
Plugin URI: http://example.com | |
Description: Additional user contact methods. | |
Author: WROX | |
Author URI: http://goo.com | |
*/ | |
/* Add a filter to the hook. */ | |
add_filter( 'user_contactmethods', 'boj_user_contactmethods' ); |
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 | |
/* | |
Plugin Name: Insert User | |
Plugin URI: http://example.com | |
Description: Plugin that inserts a user. | |
Version: 0.1 | |
Author: WROX | |
Author URI: http://goo.com | |
*/ | |
/* Insert the new user on the 'init' hook. */ |
NewerOlder