Skip to main content

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
24 votes
5 answers

The namespace WPSE

I suggest the namespace WPSE for the code snippets we use in our answers. Namespaces are a feature of PHP 5.3; WordPress core requires just PHP 5.2.4 currently. But even PHP 5.3 development has ...
fuxia's user avatar
  • 107k
21 votes
5 answers

Code Review on WordPress Answers

There have been one or two requests for code reviews for plug-ins and themes on the site in the past few weeks. WordPress Answers gives us the unique ability to post code, submit reviews, and vote on ...
EAMann's user avatar
  • 32k
11 votes
1 answer

Feature request: Stack Snippet

It is possible to get the feature Stack Snippet also on WPSE? At first I think is the default much helpful for snippets with html, css, javascript. Perhaps is enhancement to work with a WordPress ...
bueltge's user avatar
  • 17.1k
7 votes
3 answers

GPL, Copyright, and Code Snippets

About a week ago, I answered my own question on the WP Hackers mailing list by posting some drop-in PHP code (to be used either in a plug-in or a functions.php file). Today, I find out that someone ...
EAMann's user avatar
  • 32k
2 votes
2 answers

Are question about unworkable JS code on WP on-topic?

From What topics can I ask about here?, I think asking about unworkable JS code on WP is not off-topic, because the code should work in principle. But to make sure, is it on-topic? Below is the draft....
Ooker's user avatar
  • 332