Advertisement
wclovers

Untitled

Dec 1st, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. add_action( 'before_wcfmmp_store_header_info', function( $store_id ) {
  2.     $wcfmvm_custom_infos = (array) get_user_meta( $store_id, 'wcfmvm_custom_infos', true );
  3.     $title = sanitize_title( "الخبـــرة" );
  4.     if( isset( $wcfmvm_custom_infos[$title] ) ) {
  5.         echo '<span>' . $wcfmvm_custom_infos[$title] . '</span>';
  6.     }
  7. } );
  8.  
  9. add_action( 'after_wcfmmp_store_list_rating', function( $store_id, $store_info ) {
  10.     $wcfmvm_custom_infos = (array) get_user_meta( $store_id, 'wcfmvm_custom_infos', true );
  11.     $title = sanitize_title( "الخبـــرة" );
  12.     if( isset( $wcfmvm_custom_infos[$title] ) ) {
  13.         echo '<span>' . $wcfmvm_custom_infos[$title] . '</span>';
  14.     }
  15. }, 999, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement