Which action does wp_update_user triggers?

wp_update_user() is in /wp-includes/user.php lines 1401-1439. It uses wp_insert_user() (same file, lines 1254-1380) to update the existing user or add a new one if the user doesn’t exist. That function is where the various filters and actions affecting user account info live, and shows everything you can do to the $user object.

Removing permalink from post thumb in twentyeleven

No idea, never used twenty eleven theme. I opened the theme files. Check out showcase.php around Line 104-118. Should be on line 115 – just remove the anchor wrapping the post thumb, <a href=”https://wordpress.stackexchange.com/questions/52498/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_post_thumbnail( $thumbnail_size ); ?></a>

wp_nav_menu, walker class, categories as classes of li

your walker class is almost perfect for what you need @Gab. instead of line 21: $output .= ‘<li>’; move it down just before line 38 $output .= apply_filters( ‘walker_nav_menu_start_el’ […] and change it to something like $output .= $indent . ‘<li id=”nav-menu-item-‘. $item->ID . ‘” class=”‘. $title . ‘”>’; and you should have the category … Read more

how to call a function only in specific pages and exclude it from other pages

if you know which page id , for example , you can change your page.php if ( get_the_ID() == ’99’ ) { my_specific_page_99_calls(); } and then on functions.php my_specific_page_99_calls( require_once(GABFIRE_FUNCTIONS_PATH. ‘/review-options.php’); require_once(GABFIRE_FUNCTIONS_PATH . ‘/custom.php’); require_once(GABFIRE_FUNCTIONS_PATH . ‘/shortcodes.php’); require_once(GABFIRE_FUNCTIONS_PATH . ‘/post-types.php’); ) i’m sure there’s other options, but this will get you there. to exclude from … Read more

Having a Function Inside of the Loop

Before continuing, please read this: http://www.slideshare.net/andrewnacin/you-dont-know-query-wordcamp-netherlands-2012 It’s by a core WordPress developer and you should consider it required reading. You should never use query_posts, and it’s important to understand how to use loops correctly. That presentation will demonstrate the best practices, how, and why to use them. I can see the approach you’ve taken, what … Read more

List all-childpages on parent-page AND list child-pages on childpage itself but not the current one?

function show_subpages() { global $post; $subpages = wp_list_pages( array( ‘echo’ =>0, ‘title_li’ =>”, ‘depth’ =>2, ‘link_before’ => ‘&mdash; ‘, ‘child_of’ => ( $post->post_parent == 0 ? $post->ID : $post->post_parent), ‘exclude’ => ( $post->post_parent == 0 ? ” : $post->ID) )); if ( !empty($subpages) ) { echo ‘<ul id=”subpages” class=”wrapper”>’; echo $subpages; echo ‘</ul>’; } } … Read more

Getting the ID of any image for use in functions.php

Hopefully this helps, function mat_image_credit() { global $post; $args = array( ‘post_type’ => ‘attachment’, ‘post_parent’ => $post->ID, ‘post_mime_type’ => ‘image’, ‘numberposts’ => -1, ); $imgs = get_posts($args); foreach ($imgs as $img) { $field1 = slt_cf_field_value(‘flickr_credit’, ‘attachment’, $img->ID); $field2 = slt_cf_field_value(‘custom_credit’, ‘attachment’, $img->ID); if (!empty ( $field1 ) ) { echo ‘Image by ‘ . $field1; … Read more