16,559 reputation
21755
bio website tomjn.com
location United Kingdom
age 26
visits member for 4 years, 4 months
seen yesterday

I’m a VIP Wrangler at Automattic, a former Code For The People developer, a speaker at conferences, and an elected community moderator at WordPress Stack Exchange.

I also blog about WordPress and PHP at http://tomjn.com


2d
comment Login Individual
This question seems exceptionally broad, can you edit your question to be more specific and add what you've done so far?
2d
awarded  Revival
2d
comment Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?
Your AJAX endpoint is a major security hole, even if your plugin is disabled, someone can still send requests to it and make changes. You should use the WP AJAX API instead, at which point your problem completely dissapears
2d
answered Trying to create an edit page link?
2d
comment Session is not starting
Of note some hosts advise PHP sessions are unreliable, e.g. using PHP sessions on WP Engine can lead to problems ( such as users sharing sessions that shouldn't etc ). Perhaps you'd be better off using cookies and user meta
2d
comment How to create another widgets.php page
You can also register new sidebars using the Widgets API
2d
comment Reset a site in multisite
Plugin recommendations are off topic here, though answers that don't recommend plugins are possible and would be interesting ( such plugins do exist for single sites, I wouldn't know if they work with multisites )
2d
comment Geo location query inside wp_query?
I don't think this is possible with WP_Query as is, you'd need to insert custom calculation logic into the SQL query. You might be able to add a new query variable, then add some code to intercept the sql query and add some custom logic to it, I'm not sure how you'd do that though. It might help if you provided the SQL for calculating distance
Jan
21
comment HTML in page source not arranged
Why? If you open the web developer tools in your browser it auto formats the code even if it isn't formatted ( formatted/indented is the word you're looking for not arranged )
Jan
20
comment HTML in page source not arranged
What do you mean by arranged?
Jan
18
comment Execute shortcode twice in the same page
stackoverflow.com/questions/829407/…
Jan
17
comment Can wordpress differentiate between added and updated posts?
you could post that as the answer
Jan
16
revised add_action reference a class
added 243 characters in body
Jan
16
comment Execute shortcode twice in the same page
You shouldn't declare functions inside of other functions, aside from being easier to read and debug, it can cause issues with code intel and other tools designed to catch bugs or help coders
Jan
16
comment Execute shortcode twice in the same page
Also I may be misreading but you declare a function inside another function? This is bad
Jan
16
comment Execute shortcode twice in the same page
I would advise against the use of extract, and recommend you indent consistently so that yourself and people reading your question can read the code easier
Jan
16
comment Taking site's full control
However I'm still of the opinion you should write a web app that uses the REST API if you plan to do this 'complete overhaul/replacement' plan. This seems to be the path forward advocated by most leading developers from WP Core for custom admin panels and interfaces
Jan
16
comment Taking site's full control
Perhaps you would be better served by asking how to disable each thing individually, regardless of 'take full control', which I still think isn't the best way to describe what you want to do, individual things like removing the media library etc may be useful for other reasons, and asked on their own would elicit a lot more responses
Jan
16
comment I need value of saved meta to display next to the post it is associated with
There isn't enough information here to answer the question, there's no information on how you're storing the data, is custom_select a serialised string? An ACF field? Are there multiple custom_select post meta on a post? Is it a string? Is it a number? Can we see the code that saves the data? Where does it come from? How does the EM_Events call end? Is this code in an admin page or a theme template, or neither? Please expand your question extensively with as many of these details and more
Jan
16
revised I need value of saved meta to display next to the post it is associated with
deleted 14 characters in body