803 reputation
128
bio website dagtuts.com
location United States
age 29
visits member for 1 year, 11 months
seen 2 days ago
var experience = '**novice**';
var reason = 'It pays the bills.';
var Coding = function(reason){
     this.reason = reason;
 }

Coding.prototype.getProfitable = function(){
     return this.reason + '  And now I can do it for fun.';
}
var someday = new Coding(reason);
alert(someday.getProfitable);

Jul
28
comment How to prevent wordpress from autoformatting my posts once and for all?
Have you tried remove_all_filters( 'the_content' ); and remove_all_filters( 'the_excerpt' ); ?
Jul
27
answered Wordpress - registering sidebar and adding a button directly after .textwidget
Jul
27
comment Wordpress - registering sidebar and adding a button directly after .textwidget
Can you please display where the button is now and also display where you want it to be? I think I can help if you show the current HTML.
Jul
12
comment In the Edit Post page how do I modify with jQuery the status select list?
Have you tried pasting jQuery('#post_status option[value="draft"]').text('Approve'); into the console after the page is loaded?
Jul
7
answered In the Edit Post page how do I modify with jQuery the status select list?
Jul
7
comment In the Edit Post page how do I modify with jQuery the status select list?
Have you tried typing that into the console to see if it does anything? That might narrow down if the element you want exists when you are calling the script.
Jun
16
comment Password Protect Custom Page
I use this plugin to solve the problem posed in the question almost exactly. I am sure it would be helpful to someone, which is my intention in posting the answer.
Jun
16
comment Password Protect Custom Page
If you looked at the features in the Membership plugin, you would see that it makes password protected pages and sections very easy to implement based on users and user groups.
Jun
14
comment All Menu Items Disappear Seemingly at Random
I would try adding another menu and seeing if that one behaves the same way. If so, maybe Nabil K is on to something.
Jun
14
comment How to get WordPress to save upload file beyond web root
It did turn out to be permissions related, but I ended up not using Wordpress to upload the files anyway.
May
30
comment Child theme functions randomly broke while editing a page — no errors
What is $query->set('portfolio', $post_name); used for? Maybe try to comment that out once
May
30
answered Using POST method in meta box, no results
May
30
comment Child theme functions randomly broke while editing a page — no errors
Please show the code for functions.php; maybe the problem will be easily spotted.
May
15
awarded  Unsung Hero
May
13
comment Enqueue script only if page has an oembed
Yes, that is what I was getting at. Any filters specific to oembed are not fired until just before the content is being displayed, so that is why I am suggesting doing the check earlier.
May
8
revised How to get WordPress to save upload file beyond web root
deleted 896 characters in body
May
7
comment How to get WordPress to save upload file beyond web root
I checked those specifics and I have write access beyond the webroot with my nginx php script user. As noted above, I can now create the directory with my code, but the actual file does not get saved there.
May
7
revised How to get WordPress to save upload file beyond web root
deleted 896 characters in body
May
6
comment How to add class or id to shortcode HTML elements?
That is true, but the question was probably made under the assumption that whatever plugin/theme created the [row] shortcode may have a specific Wordpress way of handling classes.
May
6
comment Sorting Posts Based On Meta Value Using AJAX
What is the response returning exactly?