Making my plugin multi-site compatible
The Proper Network Activation meta-plugin was written precisely for cases like this.
The Proper Network Activation meta-plugin was written precisely for cases like this.
A short primer on WordPress development that might help or might confuse you: The main thing to keep in mind: it’s all just PHP. And also: don’t edit the core files of WordPress, because you will get in trouble when you update to a newer version later. The only code you should edit is that … Read more
What you need is in global $wp_meta_boxes indexed by get_current_screen()->id. Removing the screen options will also remove the metaboxes which you can do just before screen options are displayed using the ‘in_admin_header’ hook. So let’s assume you want to get rid of the “Send Trackbacks” screen option which you see in this screenshot: Drop the … Read more
I’m writing far more custom code lately (plugins and theme functions, really all the same) because when you start using wordpress as a full-fledged CMS, you’re dealing with bleeding-edge functions that have only barely been discovered by many (or are still waiting to be stumbled upon in the source itself). So there aren’t many plugins … Read more
http://yoast.com/custom-wordpress-database-error-pages/ You can make your own Database Error page by adding a db-error.php to your wp-content folder (/wp-content/db-error.php). You can find a good example of such a page in the link above. Don’t forget adding header(“HTTP/1.0 500 Internal Server Error”); in that file so it get a proper header message.
There is already a huge list built for you, which can be returned by wp_kses_allowed_html() based on context, and filtered via the wp_kses_allowed_html filter, also contextually. Creating that list should not be hard. However, “the whole range of HTML tags that might appear in an HTML email” should be pretty close to the range allowed … Read more
TL;DR Yes, WordPress can certainly act as a backend for a mobile app. Yes, a page can act as a rest endpoint / interface. No, a theme template is not the right territory for the logic. Write your own plugin. Pointers I find it hard to believe that no one else has done this. I, … Read more
Correction, your theme was still compliant with XHTML 1.1 and CSS 2.1, but the plug-ins you added injected additional code that wasn’t compliant. Unfortunately, there’s no easy way to maintain compliance if you’re using plug-ins. The best you can do is validate your theme and all of the markup you are personally responsible for, then … Read more
Usually, you can detect WordPress itself by looking at the site’s source code for the WordPress generator meta tag: <meta name=”generator” content=”WordPress 3.0.1″ /> However, some sites remove this tag to hide the fact that they’re running WP. There’s no foolproof way to detect the list of plug-ins that are running on a site, though. … Read more
The question / answer you are referring to was Tips for using WordPress as a CMS. The screenshots posted in that answer were created using the register_meta_box_cb argument that is available to for custom post types. register_meta_box_cb must specify a callback function that contains the code for the meta box. To create the meta box … Read more