Editing wp-config.php
Yes, the plugin can override it, use action, init with a function to disable it. for example add_action(init,’my_disable_revision’); function my_disable_revision () { define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); }
Yes, the plugin can override it, use action, init with a function to disable it. for example add_action(init,’my_disable_revision’); function my_disable_revision () { define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); }
Look at the markup for the callback function called by add_theme_page() or add_settings_page(), and use that markup to create a custom Page template. For code that simply outputs content, this should be fairly straight-forward; for code that actually saves settings, you’re probably going to have to do more work in order to create front-end data … Read more
You have to hook earlier in the request to log someone in, you can’t do it from a page template because, as the error says, headers have been sent to the browser already, so it’s too late at that point. <?php add_action(‘template_redirect’, ‘my_check_login’); function my_check_login(){ if( is_page(‘my-login-page’) && isset($_POST[’email’]) ){ // check input and // … Read more
You have to explicitly set the target url or it will use the rel canonical (if present) or grab URL of the current page via js. Use the button generator and click advanced options to set the target URL, or: <g:plusone href=”http://tablified.com/”></g:plusone>
You can try out other comment systems like Disqus or Livefyre. They have the flag as inappropriate feature built into them. Not to mention these commenting systems are real-time.
I hadn’t used this specific solution, but any self-hosted analytics in general should be considered potentially huge resource hog: every async action in WordPress is effectively another WP core load, so if tracking code makes even one additional async request to back-end it effectively doubles the load; stat logging by nature cannot be cached; stat … Read more
You’d be better off using the inbuilt Post Thumbnails, which were introduced in WordPress 2.9 – these are easier to use than custom fields and have things like sizing built in. Once you’ve enabled Post Thumbnails, you can set their default size using set_post_thumbnail_size and then use them in your theme with the_post_thumbnail
If I had to guess? The plugin activation hook is firing before the rewrite_rules_array filter is applied, resulting in the rules being flushed before you make changes to them. See here for the Codex-recommended implementation, using the wp_loaded action hook.
You can use is_admin(); in your if query , http://codex.wordpress.org/Function_Reference/is_admin
// Kick in right before theme takes over, when WP is all loaded add_action(‘wp’, function(){ list($uri, $qs) = explode(‘?’, $_SERVER[‘REQUEST_URI’]); // Do stuff here: // … STUFF … }); Cheers!