How can I remove the welcome message generated by the New User Approve plugin?

The second argument should be a function callback, not the actual message. You can remove the message completely by pasting this code into your theme’s functions.php file: add_filter( ‘new_user_approve_welcome_message’, ‘wpse_76823_login_message’ ); function wpse_76823_welcome_message( $message ) { return ”; } Or, you can replace the message by using this code: add_filter( ‘new_user_approve_welcome_message’, ‘wpse_76823_login_message’ ); function wpse_76823_welcome_message( … Read more

Custom Fields for Page Edits

Typically what plugin authors will do is use add_meta_box to add an area on the post edit screen for users to enter extra data. Within the functions that save and retrieve the data to generate your meta box, use the post meta functions to store it. Remember that prefixing a meta key with an underscore … Read more

Language translation on a fresh english installation

Refer to the documentation for more details: http://codex.wordpress.org/Installing_WordPress_in_Your_Language Skip the first two steps and the backend won’t be translated. 1) Download the Italian version of WordPress. 2) Upload the files located in /wp-content/languages/ to your live site. These files are for translating the Backend. 3) Define the language in wp-config.php as define (‘WPLANG’, ‘it_IT’);. Before … Read more

Post via git repository

Like the comments on this question stated, there is far too little detail in your post and it is far too localized of a question for this forum, but here is a general idea of what a project of this nature would require: You would need to utilize the GitHub API to dynamically pull new … Read more

Trying to place shortcode/css/html into an IF conditional statement

Instead of getting all terms, looping over them and then searching your array, you can use the has_termconditinal tag ex: if( has_term( ‘z’, ‘product_cat’,$post->ID ) ) { ?> <div id=”post-timer”> <p class=”timebuy”>Time Left To Buy:</p> <div id=”timer-wrap”> <?php echo do_shortcode( ‘[tminus cid =”12″ omitweeks=”true” days=” ” hours=” ” minutes=” ” seconds=” “/]’ ); ?> </div><!–end … Read more

Better WP Security plugin blocking calls using file_get_contents() method

You shouldn’t use file_get_contents() for remote requests. WordPress does the heavy lifting for you when determining what is compatible on your host. Instead of file_get_contents() use the following to check for 404s: $request = wp_remote_get($url); $status = $request[‘response’][‘code’]; if($status === 404){ //do something } You can also use wp_remote_retrieve_body($request) to get the contents of the … Read more

Posts 2 Posts: Display custom types connected to the same other custom type but with another connection

Maybe this could get you started: function get_loser( $winner_id ) { global $post; $tournament = get_connected_id( $winner_id, ‘won_final’ ); $loser = get_connected_id( $tournament[‘ID’], ‘lost_final’ ); return $loser; } function get_connected_id( $from_id, $connected_type ) { global $post; $result = array( ‘ID’ => null, ‘post_title’ => null, ); if ( null === $from_id ) return $result; $connected … Read more