2,750 reputation
31329
bio website rrike.sh
location Mauritius
age 30
visits member for 3 years
seen 2 days ago

Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
@pSyToR are you adding any other JS files besides jQuery? You can add jQuery as a dependency, meaning WordPress will automatically include jQuery when it includes your JS file. Sometimes you can have such errors if you're including jQuery twice! Look at your source code.
Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
@bonger why wouldn't you have? It's better to put things in a JS file for caching.
Jan
24
comment Wordpress Plugin development Call to undefined function jQuery()
Why not not add jQuery as a dependency?
Jan
24
comment Turn Autocomplete on
Did you activate the plugin? Is the JavaScript part being injected in your page?
Jan
22
answered Turn Autocomplete on
Jan
21
comment Import live site to local setup without access to live site
It's usually the same steps. Extract WordPress files, import database, modify the home and siteurl from the options table, modify wp-config.php for new database credentials, set WP_DEBUG to true, etc...
Jan
17
answered Loading different JS for http and https
Dec
19
answered ajaxt returning object object
Dec
4
comment Insert Query not working in the form
codex.wordpress.org/Class_Reference/wpdb#INSERT_rows
Dec
3
answered Ajax resetting my global variable
Nov
28
answered How do I go straight to “Edit More Details” when clicking on an item in the media library?
Nov
28
answered Wordpress Recent post only showing title
Nov
21
reviewed Reject Restrict WordPress to Private
Nov
15
comment Customizer API - Class doesn't exist error
Why are you including files from wp-includes? You should include class-customizer-control.php from your theme's functions.php.
Nov
11
revised How to put last edited entry on top of the blog-post list?
changed "to" to "top" in the question
Nov
11
revised How do I programmatically add items of content to a custom post type?
added link for image attachments
Nov
11
comment How do I programmatically add items of content to a custom post type?
Yes, thanks for catching this mistake. I surely meant the postmeta table!
Sep
30
awarded  Explainer
Sep
10
awarded  Notable Question
Aug
30
comment Set TRUE or FALSE based on a wp_localize_script option value
Should be something like window.onload = (function(){ button = CUPID.button; })();. Off topic here though.