-
-
Save golchha21/6228333 to your computer and use it in GitHub Desktop.
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: Easy Default Parameters | |
Plugin URI: http://remicorson.com | |
Description: Set your own default parameters on a fresh WordPress install | |
Version: 0.1 | |
Author: Rémi Corson | |
Author URI: http://remicorson.com | |
Contributors: Rémi Corson, corsonr | |
*/ | |
function edp_set_my_default_settings() | |
{ | |
$args = array( | |
'blogname' => 'xxxxx', // Place the name of your new website here | |
'blogdescription' => 'xxxxx', // Place the description of your new website here | |
'date_format' => 'j F Y', // Choose the default date format | |
'tag_base' => '/keywords', // Choose the tag base slug | |
'category_base' => '/category', // Choose the category base slug | |
'comment_moderation' => 1, // Set comment moderation | |
'time_format' => 'G \h i \m\i\n', // Choose default time format | |
'links_updated_date_format' => 'j F Y, G \h i \m\i\n', // Choose default date format for links | |
'permalink_structure' => '/%postname%/', // Choose your default permalinks structure | |
'rss_language' => 'en', // Set you default RSS language | |
'timezone_string' => 'Europe/Paris', // Set your your default timezone settings, choose Europe/Paris if you like good food! ;-) | |
'use_smilies' => 0, // Choose to use automatic smileys or not | |
'ping_sites' => 'http://rpc.pingomatic.com/ | |
http://1470.net/api/ping | |
http://www.a2b.cc/setloc/bp.a2b | |
http://api.feedster.com/ping | |
http://api.moreover.com/RPC2 | |
http://api.moreover.com/ping | |
http://api.my.yahoo.com/RPC2 | |
http://api.my.yahoo.com/rss/ping | |
http://www.bitacoles.net/ping.php | |
http://bitacoras.net/ping | |
http://blogdb.jp/xmlrpc | |
http://www.blogdigger.com/RPC2 | |
http://blogmatcher.com/u.php | |
http://www.blogoole.com/ping/ | |
http://www.blogoon.net/ping/ | |
http://www.blogpeople.net/servlet/weblogUpdates | |
http://www.blogroots.com/tb_populi.blog?id=1 | |
http://www.blogshares.com/rpc.php | |
http://www.blogsnow.com/ping | |
http://www.blogstreet.com/xrbin/xmlrpc.cgi | |
http://blog.goo.ne.jp/XMLRPC | |
http://bulkfeeds.net/rpc | |
http://coreblog.org/ping/ | |
http://www.lasermemory.com/lsrpc/ | |
http://mod-pubsub.org/kn_apps/blogchatt | |
http://www.mod-pubsub.org/kn_apps/blogchatter/ping.php | |
http://www.newsisfree.com/xmlrpctest.php | |
http://ping.amagle.com/ | |
http://ping.bitacoras.com | |
http://ping.blo.gs/ | |
http://ping.bloggers.jp/rpc/ | |
http://ping.blogmura.jp/rpc/ | |
http://ping.cocolog-nifty.com/xmlrpc | |
http://ping.exblog.jp/xmlrpc | |
http://ping.feedburner.com | |
http://ping.myblog.jp | |
http://ping.rootblog.com/rpc.php | |
http://ping.syndic8.com/xmlrpc.php | |
http://ping.weblogalot.com/rpc.php | |
http://ping.weblogs.se/ | |
http://pingoat.com/goat/RPC2 | |
http://www.popdex.com/addsite.php | |
http://rcs.datashed.net/RPC2/ | |
http://rpc.blogbuzzmachine.com/RPC2 | |
http://rpc.blogrolling.com/pinger/ | |
http://rpc.icerocket.com:10080/ | |
http://rpc.pingomatic.com/ | |
http://rpc.technorati.com/rpc/ping | |
http://rpc.weblogs.com/RPC2 | |
http://www.snipsnap.org/RPC2 | |
http://trackback.bakeinu.jp/bakeping.php | |
http://topicexchange.com/RPC2 | |
http://www.weblogues.com/RPC/ | |
http://xping.pubsub.com/ping/ | |
http://xmlrpc.blogg.de/', // List of auto-pings | |
); | |
// Loop through args | |
foreach ( $args as $k => $v ) | |
{ | |
update_option($k, $v); | |
} | |
// Delete "hello world" post | |
wp_delete_post(1, TRUE); | |
// Delete "Mister WordPress" comment | |
wp_delete_comment(1); | |
// Delete default links | |
for ($i = 1; $i <= 7; $i++) { | |
wp_delete_link($i); | |
} | |
return; | |
} | |
register_activation_hook(__FILE__, 'edp_set_my_default_settings'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment