Title: Anas Mohammad's Replies | WordPress.org

---

# Anas Mohammad

  [  ](https://wordpress.org/support/users/devloperanas/)

 *   [Profile](https://wordpress.org/support/users/devloperanas/)
 *   [Topics Started](https://wordpress.org/support/users/devloperanas/topics/)
 *   [Replies Created](https://wordpress.org/support/users/devloperanas/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/devloperanas/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/devloperanas/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/devloperanas/engagements/)
 *   [Favorites](https://wordpress.org/support/users/devloperanas/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress] Font end user image preview not showing](https://wordpress.org/support/topic/font-end-user-image-preview-not-showing/)
 *  [Anas Mohammad](https://wordpress.org/support/users/devloperanas/)
 * (@devloperanas)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/font-end-user-image-preview-not-showing/#post-11879242)
 * I have the same issue. Looks like there’s no solution yet!
    -  This reply was modified 6 years, 9 months ago by [Anas Mohammad](https://wordpress.org/support/users/devloperanas/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress] [avatar user=current]](https://wordpress.org/support/topic/avatar-usercurrent/)
 *  [Anas Mohammad](https://wordpress.org/support/users/devloperanas/)
 * (@devloperanas)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/avatar-usercurrent/#post-11878102)
 * Thanks. It did helped me
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Exclude Stock out products from Related products](https://wordpress.org/support/topic/exclude-stock-out-products-from-related-products/)
 *  Thread Starter [Anas Mohammad](https://wordpress.org/support/users/devloperanas/)
 * (@devloperanas)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/exclude-stock-out-products-from-related-products/#post-10648561)
 * Hi Rynald0s,
 * I have used the blow code :
 * `function iconic_enable_hide_out_of_stock_items( $template_name, $template_path,
   $located, $args ) {
    if( $template_name !== “single-product/related.php” ) { 
   return; }
 *  add_filter( ‘pre_option_woocommerce_hide_out_of_stock_items’, function( $option){
   return “yes”; }, 10, 1 );
    }
 * function iconic_disable_hide_out_of_stock_items( $template_name, $template_path,
   $located, $args ) {
    if( $template_name !== “single-product/related.php” ) { 
   return; }
 *  add_filter( ‘pre_option_woocommerce_hide_out_of_stock_items’, function( $option){
   return “no”; }, 10, 1 );
    }
 * add_action( ‘woocommerce_before_template_part’, ‘iconic_enable_hide_out_of_stock_items’,
   10, 4 );
    add_action( ‘woocommerce_after_template_part’, ‘iconic_disable_hide_out_of_stock_items’,
   10, 4 );
    -  This reply was modified 7 years, 9 months ago by [Anas Mohammad](https://wordpress.org/support/users/devloperanas/).

Viewing 3 replies - 1 through 3 (of 3 total)