Let user edit his own comment
You can add the following code in function.php $subscriber= get_role(‘subscriber’); $subscriber->add_cap(‘edit_comment’); Meanwhile edit_comment is only supported in version 3.1 or newer Or you can use this plugin link
You can add the following code in function.php $subscriber= get_role(‘subscriber’); $subscriber->add_cap(‘edit_comment’); Meanwhile edit_comment is only supported in version 3.1 or newer Or you can use this plugin link
What you’re doing is, in my opinion, the best way to accomplish this. First off, the pages are a good way to go, because they give users the ability to customize parts of the page like title, meta fields, etc. You don’t have to use shortcodes per se, you can filter the_content for these pages, … Read more
A while later i decided to try it again… (needed it for a project) this time i went for clean jquery and i got it to work! here it is: the working & easy to use way to count words while they are being written inside a wp_editor both in the html editor and visual … Read more
There are a number of template filters you can use to alter the template hierarchy. Have a look at the template hierarchy page at the filters and example provided. Here’s a modified version of the example that uses single_template. It checks for a specific custom post type and loads the theme’s page.php template if it … Read more
It’s much simpler than you think. The function you will be dealing with is wp_insert_term as I am assuming you only want to provide basic functionality to add a new term (club) and not update terms I won’t cover the wp_update_term function now. The example below is very basic and is intended to be that … Read more
Add this to your functions.php in your template folder. <?php //Set Default Meta Value function set_default_meta_new_post($post_ID){ $current_field_value = get_post_meta($post_ID,’YOURMETAKEY’,true); //change YOUMETAKEY to a default $default_meta=”100″; //set default value if ($current_field_value == ” && !wp_is_post_revision($post_ID)){ add_post_meta($post_ID,’YOURMETAKEY’,$default_meta,true); } return $post_ID; } add_action(‘wp_insert_post’,’set_default_meta_new_post’); ?>
You get just the file names because you are not uploading the files. Uploading files using AJAX is currently not that easy. Newer browsers implement the FormData interface, but for older browsers you’re stuck with some kind of flash uploader, like PlUpload for example. I suggest you use PlUpload because it’s bundled with WP, and … Read more
From your comment above, I believe you’re running into issues with the _wpnonce piece of the puzzle. Looking at the code in /wp-admin/post.php, it appears that the untrash instruction is checking for a valid WordPress nonce, and not getting one. This might do the trick: <?php function wpse_95348_undelete_post( $post_id ) { // no post? if( … Read more
That plugin loads its language the moment its main file is included: load_plugin_textdomain( ‘wordpress-seo’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages’ ); So when your locale filter is used, the language is already there. :/ Move your small plugin into the mu-plugins directory. You can create it if it doesn’t exists in wp-content. That … Read more
That’s the Jetpack Stats image, it’s necessary to track the stats. You can disable it by disabling Jetpack Stats but it shouldn’t be full width, that will be a CSS problem