<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" dir="ltr" lang="en-US">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" dir="ltr" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" dir="ltr" lang="en-US">
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Will Ayers | Just another WordPress site</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="http://cointilt.me/wp-content/themes/twentyeleven/style.css" />
<link rel="pingback" href="http://cointilt.me/xmlrpc.php" />
<!--[if lt IE 9]>
<script src="http://cointilt.me/wp-content/themes/twentyeleven/js/html5.js" type="text/javascript"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="Will Ayers &raquo; Feed" href="http://cointilt.me/feed/" />
<link rel="alternate" type="application/rss+xml" title="Will Ayers &raquo; Comments Feed" href="http://cointilt.me/comments/feed/" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://cointilt.me/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://cointilt.me/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='Will Ayers' href='http://cointilt.me/' />
<meta name="generator" content="WordPress 3.2.1" />
	<link rel="stylesheet" href="http://cointilt.me/wp-content/plugins/fv-code-highlighter/public/css/highlighter.css" media="all" />
	<style type="text/css">
		.fvch-code pre {
			margin-left: 3.1em !important;
			padding: 1px 0 1px 10px !important;
		} 
		.fvch-code pre, pre.fvch-line-numbers {
			background: url(http://cointilt.me/wp-content/plugins/fv-code-highlighter/public/images/notepaper.png) top left repeat;
			line-height: 18px; 
			font-family: 'Monaco', 'Courier New', Courier, monospace;
			font-size: 10px;
		}
		pre.fvch-line-numbers {
			background: #e2e2e2;
			margin: 0 !important;
			padding: 1px 4px 1px 0 !important;
		}
	</style>
	<meta name="generator" content="FV Code Highlighter" />
	</head>

<body class="home blog single-author two-column right-sidebar">
<div id="page" class="hfeed">
	<header id="branding" role="banner">
			<hgroup>
				<h1 id="site-title"><span><a href="http://cointilt.me/" title="Will Ayers" rel="home">Will Ayers</a></span></h1>
				<h2 id="site-description">Just another WordPress site</h2>
			</hgroup>

						<a href="http://cointilt.me/">
									<img src="http://cointilt.me/wp-content/themes/twentyeleven/images/headers/chessboard.jpg" width="1000" height="288" alt="" />
							</a>
			
								<form method="get" id="searchform" action="http://cointilt.me/">
		<label for="s" class="assistive-text">Search</label>
		<input type="text" class="field" name="s" id="s" placeholder="Search" />
		<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />
	</form>
			
			<nav id="access" role="navigation">
				<h3 class="assistive-text">Main menu</h3>
								<div class="skip-link"><a class="assistive-text" href="#content" title="Skip to primary content">Skip to primary content</a></div>
				<div class="skip-link"><a class="assistive-text" href="#secondary" title="Skip to secondary content">Skip to secondary content</a></div>
								<div class="menu"><ul><li class="current_page_item"><a href="http://cointilt.me/" title="Home">Home</a></li><li class="page_item page-item-50"><a href="http://cointilt.me/cobalt/" title="Cobalt">Cobalt</a></li></ul></div>
			</nav><!-- #access -->
	</header><!-- #branding -->


	<div id="main">
		<div id="primary">
			<div id="content" role="main">

			
				
								
					
	<article id="post-62" class="post-62 post type-post status-publish format-standard hentry category-hosting category-servers tag-11 tag-hosting-2 tag-servers-2 tag-vps-net">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/11/ahh-the-joys-of-111111/" title="Permalink to Ahh the joys of 11/11/11" rel="bookmark">Ahh the joys of 11/11/11</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/11/ahh-the-joys-of-111111/" title="7:57 pm" rel="bookmark"><time class="entry-date" datetime="2011-11-11T19:57:10+00:00" pubdate>November 11, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/11/ahh-the-joys-of-111111/#respond" title="Comment on Ahh the joys of 11/11/11"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>So over the past couple years I have seen the number 11 everywhere all the time. 11:11 on my phone, on my computer. It seems like very time I look at a clock I will see that number. So my girlfriend jokes that she does not want me to do, or go any where on 11/11/11 as we think something might happen to me. So I did expect something to happen today.</p>
<p>Thank god so far nothing has happened to me be, but, server did go down today for Mojo Themes. And we have discovered that we will be switching our hosting provider.</p>
<p>I have never liked VPS.net in the first place but their lack of response, which is only via email ( no phone number available ), has been the last straw. Good bye terrible customer service.</p>
<p>We&#8217;ll release more info about our new services. But right now our major goal is to just get the site back up and running.</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/hosting/" title="View all posts in Hosting" rel="category tag">Hosting</a>, <a href="http://cointilt.me/category/servers/" title="View all posts in Servers" rel="category tag">Servers</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/11/" rel="tag">11</a>, <a href="http://cointilt.me/tag/hosting-2/" rel="tag">hosting</a>, <a href="http://cointilt.me/tag/servers-2/" rel="tag">servers</a>, <a href="http://cointilt.me/tag/vps-net/" rel="tag">VPS.net</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/11/ahh-the-joys-of-111111/#respond" title="Comment on Ahh the joys of 11/11/11"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-62 -->

				
					
	<article id="post-53" class="post-53 post type-post status-publish format-standard hentry category-php category-wordpress tag-add_action tag-wordpress tag-wp_head">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/11/adding-code-to-the-header-in-wordpress/" title="Permalink to Adding code to the head tag in WordPress" rel="bookmark">Adding code to the head tag in WordPress</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/11/adding-code-to-the-header-in-wordpress/" title="7:13 pm" rel="bookmark"><time class="entry-date" datetime="2011-11-10T19:13:39+00:00" pubdate>November 10, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/11/adding-code-to-the-header-in-wordpress/#respond" title="Comment on Adding code to the head tag in WordPress"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>When you want to add code into the head tag of a WordPress blog the best way of doing so, especially if you are a theme builder, is to use the <a href="http://codex.wordpress.org/Function_Reference/add_action" target="_blank"><code>add_action()</code></a> function that WordPress provides.</p>
<p>Actions are there to allow you to attach functions or classes to a specific part of WordPress&#8217; output. So when you are coding in the functions.php file you can create a function that will output a meta tag into your head without going into the template files and manually adding this.</p>
<p>This is perfect for when you are developing a WordPress theme for sale.</p>
<p>We start with the <a href="http://codex.wordpress.org/Function_Reference/add_action" target="_blank"><code>add_action()</code></a> function and use the value of &#8216;wp_head&#8217;:</p>
<pre><code>add_action ( 'wp_head', 'my_custom_function_name' );</code></pre>
<p>The first value of &#8216;wp_head&#8217; is the name of the WordPress action we want to attach a function to. The second value &#8216;my_custom_function_name&#8217; is the name of the function we are creating to output code.</p>
<p>Below is the function we will be using to insert a meta tag into our head tag.</p>
<pre><code>function my_custom_function_name()
{
    echo '&lt;meta name="author" value="Will Ayers"&gt;';
}</code></pre>
<p>And there you have it. The author meta tag will now show up in your head tag as long as the theme has the function <code>wp_head()</code> inside the head tag.</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>, <a href="http://cointilt.me/category/wordpress/" title="View all posts in WordPress" rel="category tag">WordPress</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/add_action/" rel="tag">add_action</a>, <a href="http://cointilt.me/tag/wordpress/" rel="tag">WordPress</a>, <a href="http://cointilt.me/tag/wp_head/" rel="tag">wp_head</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/11/adding-code-to-the-header-in-wordpress/#respond" title="Comment on Adding code to the head tag in WordPress"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-53 -->

				
					
	<article id="post-44" class="post-44 post type-post status-publish format-standard hentry category-javascript category-php tag-encode tag-javscript tag-json tag-php">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/08/php-arrays-to-javascript/" title="Permalink to PHP arrays to Javascript" rel="bookmark">PHP arrays to Javascript</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/08/php-arrays-to-javascript/" title="10:06 pm" rel="bookmark"><time class="entry-date" datetime="2011-08-31T22:06:36+00:00" pubdate>August 31, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/08/php-arrays-to-javascript/#respond" title="Comment on PHP arrays to Javascript"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>How do you get a php array into a javascript array/object? You use json! Below is a simple way of doing so.</p>
<p>Here is our php array.</p>
<pre><code>$player = array( 'id' => 24, 'first_name' => 'kobe', 'last_name' => 'Bryant' );</code></pre>
<p>Here is how we turn it into a json string.</p>
<pre><code>$json_string = json_encode ( $player );</code></pre>
<p>Now when grabbing that string with javascript you can simply call the JSON.parse method like so.</p>
<pre><code>var player = JSON.parse ( my_php_encoded_json_string );</code></pre>
<p>You can now access that php array in javascript by either array or object.</p>
<pre><code>player.first_name; // Kobe</code></pre>
<pre><code>player['last_name']; // Bryant</code></pre>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/javascript/" title="View all posts in Javascript" rel="category tag">Javascript</a>, <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/encode/" rel="tag">encode</a>, <a href="http://cointilt.me/tag/javscript/" rel="tag">javscript</a>, <a href="http://cointilt.me/tag/json/" rel="tag">json</a>, <a href="http://cointilt.me/tag/php/" rel="tag">PHP</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/08/php-arrays-to-javascript/#respond" title="Comment on PHP arrays to Javascript"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-44 -->

				
					
	<article id="post-26" class="post-26 post type-post status-publish format-standard hentry category-php category-wordpress tag-custom-post-type tag-featured-image tag-get_post_thumbnail_id tag-post tag-post-thumbnail tag-single-post-thumbnail tag-wordpress tag-wp_get_attachment_image_src">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/04/wordpress-get-url-of-featured-image/" title="Permalink to WordPress: Get Url Of Featured Image" rel="bookmark">WordPress: Get Url Of Featured Image</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/04/wordpress-get-url-of-featured-image/" title="10:53 pm" rel="bookmark"><time class="entry-date" datetime="2011-04-28T22:53:08+00:00" pubdate>April 28, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/04/wordpress-get-url-of-featured-image/#respond" title="Comment on WordPress: Get Url Of Featured Image"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>There is a very easy way to display the featured image of a post or custom post type, but what about getting just the url? Had some trouble finding any documentation about finding a solution to this. Then I came across some code that worked for me. Here is what I got to work.</p>
<p><del datetime="2011-07-13T22:11:28+00:00">In this example I am echoing out the url to the screen.</del> This will actually return an array. See <strong>Edit #1</strong> below.</p>
<pre><code>&lt;?php echo wp_get_attachment_image_src ( get_post_thumbnail_id ( $post_id ), 'single-post-thumbnail' ) ?&gt;</code></pre>
<p><strong>EDIT #1</strong></p>
<p>The above code was wrong where it was echoing out the result. It actually returns an array. So below is the how to get the url:</p>
<pre><code>$image = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post_id ), 'single-post-thumbnail' );
echo $image[0];
</pre>
<p></code></p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>, <a href="http://cointilt.me/category/wordpress/" title="View all posts in WordPress" rel="category tag">WordPress</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/custom-post-type/" rel="tag">custom post type</a>, <a href="http://cointilt.me/tag/featured-image/" rel="tag">featured image</a>, <a href="http://cointilt.me/tag/get_post_thumbnail_id/" rel="tag">get_post_thumbnail_id</a>, <a href="http://cointilt.me/tag/post/" rel="tag">post</a>, <a href="http://cointilt.me/tag/post-thumbnail/" rel="tag">post thumbnail</a>, <a href="http://cointilt.me/tag/single-post-thumbnail/" rel="tag">single-post-thumbnail</a>, <a href="http://cointilt.me/tag/wordpress/" rel="tag">WordPress</a>, <a href="http://cointilt.me/tag/wp_get_attachment_image_src/" rel="tag">wp_get_attachment_image_src</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/04/wordpress-get-url-of-featured-image/#respond" title="Comment on WordPress: Get Url Of Featured Image"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-26 -->

				
					
	<article id="post-19" class="post-19 post type-post status-publish format-standard hentry category-command-line category-php tag-command-line-2 tag-php">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/04/running-php-files-with-command-line/" title="Permalink to Running PHP Files With Command Line" rel="bookmark">Running PHP Files With Command Line</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/04/running-php-files-with-command-line/" title="4:48 pm" rel="bookmark"><time class="entry-date" datetime="2011-04-27T16:48:51+00:00" pubdate>April 27, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/04/running-php-files-with-command-line/#respond" title="Comment on Running PHP Files With Command Line"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>Do you have a php file you want to run via command line? It would make it a lot easier to show what is going on with your script especially when you are doing some sort of import. The easiest way is to simple call the name of the file after typing <code>php</code> like below.</p>
<pre><code>php filename.php</code></pre>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/command-line/" title="View all posts in Command Line" rel="category tag">Command Line</a>, <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/command-line-2/" rel="tag">command line</a>, <a href="http://cointilt.me/tag/php/" rel="tag">PHP</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/04/running-php-files-with-command-line/#respond" title="Comment on Running PHP Files With Command Line"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-19 -->

				
					
	<article id="post-16" class="post-16 post type-post status-publish format-standard hentry category-php category-wordpress tag-comment_post tag-comment_pre_save tag-filters tag-hooks tag-wordpress">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/04/wordpress-attaching-a-function-after-a-comment-is-saved/" title="Permalink to WordPress: Attaching a function after a comment is saved." rel="bookmark">WordPress: Attaching a function after a comment is saved.</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/04/wordpress-attaching-a-function-after-a-comment-is-saved/" title="5:54 pm" rel="bookmark"><time class="entry-date" datetime="2011-04-14T17:54:30+00:00" pubdate>April 14, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/04/wordpress-attaching-a-function-after-a-comment-is-saved/#respond" title="Comment on WordPress: Attaching a function after a comment is saved."><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>I had <a title="Remove Admin Bar from WordPress" href="http://cointilt.me/2011/04/remove-admin-bar-from-wordpress/">previously been trying to attach a function to a filter called &#8220;comment_pre_save&#8221;</a>. Below is the solution I found.</p>
<p>I needed to add an entry into a table in the db everytime someone added a comment. I tried running <code><strong>"comment_pre_save"</strong></code> filter to no avail. I did some more research today ( as it was around 4:30 am when I originally set out to solve this ) and found another filter that works perfectly. <code><strong>"comment_post"</strong></code>.</p>
<p>I don&#8217;t know how I missed this but I am glad I found it. Here is an example of how to get a function called when someone posts a comment.</p>
<pre><code>add_filter ( 'comment_post', 'new_comment_added' );</code></pre>
<pre><code>function new_comment_added(){ die ( 'You just added a comment.' );}</code></pre>
<p>I did a simple <code>die</code> command to let me know that it was working.</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>, <a href="http://cointilt.me/category/wordpress/" title="View all posts in WordPress" rel="category tag">WordPress</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/comment_post/" rel="tag">comment_post</a>, <a href="http://cointilt.me/tag/comment_pre_save/" rel="tag">comment_pre_save</a>, <a href="http://cointilt.me/tag/filters/" rel="tag">filters</a>, <a href="http://cointilt.me/tag/hooks/" rel="tag">hooks</a>, <a href="http://cointilt.me/tag/wordpress/" rel="tag">WordPress</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/04/wordpress-attaching-a-function-after-a-comment-is-saved/#respond" title="Comment on WordPress: Attaching a function after a comment is saved."><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-16 -->

				
					
	<article id="post-12" class="post-12 post type-post status-publish format-standard hentry category-php category-wordpress tag-comment_pre_save tag-filters tag-hooks tag-wordpress-comments">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/04/wordpress-comment-save-filter/" title="Permalink to WordPress Comment Save Filter" rel="bookmark">WordPress Comment Save Filter</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/04/wordpress-comment-save-filter/" title="9:46 am" rel="bookmark"><time class="entry-date" datetime="2011-04-14T09:46:13+00:00" pubdate>April 14, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/04/wordpress-comment-save-filter/#respond" title="Comment on WordPress Comment Save Filter"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>Since I can not sleep tonight, I am working on a project in WordPress. I am attempting to add a filter or a hook to attach some code to run when a comment is saved to the database. I have searched through WordPress&#8217;s codex and have found a filter called &#8220;comment_pre_save&#8221;.</p>
<p>WordPress does not have any documentation on this filter so I am left in the dark on this one. We will see how this goes. I will post a solution <del>if</del> when I find one.</p>
<h3>Update #1:</h3>
<p>I have found a <a title="WordPress: Attaching a function after a comment is saved." href="http://cointilt.me/2011/04/wordpress-attaching-a-function-after-a-comment-is-saved/">solution to this here</a>.</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>, <a href="http://cointilt.me/category/wordpress/" title="View all posts in WordPress" rel="category tag">WordPress</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/comment_pre_save/" rel="tag">comment_pre_save</a>, <a href="http://cointilt.me/tag/filters/" rel="tag">filters</a>, <a href="http://cointilt.me/tag/hooks/" rel="tag">hooks</a>, <a href="http://cointilt.me/tag/wordpress-comments/" rel="tag">wordpress comments</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/04/wordpress-comment-save-filter/#respond" title="Comment on WordPress Comment Save Filter"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-12 -->

				
					
	<article id="post-7" class="post-7 post type-post status-publish format-standard hentry category-php category-wordpress tag-admin-bar tag-php tag-wordpress tag-wp-3-1">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/04/remove-admin-bar-from-wordpress/" title="Permalink to Remove Admin Bar from WordPress" rel="bookmark">Remove Admin Bar from WordPress</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/04/remove-admin-bar-from-wordpress/" title="10:37 pm" rel="bookmark"><time class="entry-date" datetime="2011-04-07T22:37:19+00:00" pubdate>April 7, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/04/remove-admin-bar-from-wordpress/#respond" title="Comment on Remove Admin Bar from WordPress"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>Want to remove the Admin bar from WordPress using code?</p>
<pre><code>&lt;?php add_filter ( 'show_admin_bar', '__return_false' ) ?&gt;</code></pre>
<p>Your welcome <img src='http://cointilt.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PS. You can put this in your functions.php file in your theme directory.</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/php/" title="View all posts in PHP" rel="category tag">PHP</a>, <a href="http://cointilt.me/category/wordpress/" title="View all posts in WordPress" rel="category tag">WordPress</a>			</span>
									<span class="sep"> | </span>
							<span class="tag-links">
				<span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> <a href="http://cointilt.me/tag/admin-bar/" rel="tag">Admin Bar</a>, <a href="http://cointilt.me/tag/php/" rel="tag">PHP</a>, <a href="http://cointilt.me/tag/wordpress/" rel="tag">WordPress</a>, <a href="http://cointilt.me/tag/wp-3-1/" rel="tag">WP 3.1</a>			</span>
						
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/04/remove-admin-bar-from-wordpress/#respond" title="Comment on Remove Admin Bar from WordPress"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-7 -->

				
					
	<article id="post-4" class="post-4 post type-post status-publish format-standard hentry category-random-news">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/03/im-back/" title="Permalink to I&#8217;m Back!" rel="bookmark">I&#8217;m Back!</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/03/im-back/" title="7:17 pm" rel="bookmark"><time class="entry-date" datetime="2011-03-31T19:17:19+00:00" pubdate>March 31, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/03/im-back/#respond" title="Comment on I&#8217;m Back!"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>What will come of this?</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/random-news/" title="View all posts in Random News" rel="category tag">Random News</a>			</span>
									
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/03/im-back/#respond" title="Comment on I&#8217;m Back!"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-4 -->

				
					
	<article id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
		<header class="entry-header">
						<h1 class="entry-title"><a href="http://cointilt.me/2011/03/hello-world/" title="Permalink to Hello world!" rel="bookmark">Hello world!</a></h1>
			
						<div class="entry-meta">
				<span class="sep">Posted on </span><a href="http://cointilt.me/2011/03/hello-world/" title="7:16 pm" rel="bookmark"><time class="entry-date" datetime="2011-03-31T19:16:37+00:00" pubdate>March 31, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://cointilt.me/author/cointilt/" title="View all posts by cointilt" rel="author">cointilt</a></span></span>			</div><!-- .entry-meta -->
			
						<div class="comments-link">
				<a href="http://cointilt.me/2011/03/hello-world/#respond" title="Comment on Hello world!"><span class="leave-reply">Reply</span></a>			</div>
					</header><!-- .entry-header -->

				<div class="entry-content">
			<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
					</div><!-- .entry-content -->
		
		<footer class="entry-meta">
												<span class="cat-links">
				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="http://cointilt.me/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a>			</span>
									
									<span class="sep"> | </span>
						<span class="comments-link"><a href="http://cointilt.me/2011/03/hello-world/#respond" title="Comment on Hello world!"><span class="leave-reply">Leave a reply</span></a></span>
			
					</footer><!-- #entry-meta -->
	</article><!-- #post-1 -->

				
				
			
			</div><!-- #content -->
		</div><!-- #primary -->

		<div id="secondary" class="widget-area" role="complementary">
			
				<aside id="archives" class="widget">
					<h3 class="widget-title">Archives</h3>
					<ul>
							<li><a href='http://cointilt.me/2011/11/' title='November 2011'>November 2011</a></li>
	<li><a href='http://cointilt.me/2011/08/' title='August 2011'>August 2011</a></li>
	<li><a href='http://cointilt.me/2011/04/' title='April 2011'>April 2011</a></li>
	<li><a href='http://cointilt.me/2011/03/' title='March 2011'>March 2011</a></li>
					</ul>
				</aside>

				<aside id="meta" class="widget">
					<h3 class="widget-title">Meta</h3>
					<ul>
												<li><a href="http://cointilt.me/wp-login.php">Log in</a></li>
											</ul>
				</aside>

					</div><!-- #secondary .widget-area -->

	</div><!-- #main -->

	<footer id="colophon" role="contentinfo">

			

			<div id="site-generator">
								<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress</a>
			</div>
	</footer><!-- #colophon -->
</div><!-- #page -->


</body>
</html>