Title: pinkhare's Replies | WordPress.org

---

# pinkhare

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/pinkhare/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/pinkhare/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/pinkhare/replies/page/2/?output_format=md)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How can I get the parent menu-item object(not ID) in my nav walker class?](https://wordpress.org/support/topic/how-can-i-get-the-parent-menu-item-objectnot-id-in-my-nav-walker-class/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-can-i-get-the-parent-menu-item-objectnot-id-in-my-nav-walker-class/#post-7127875)
 * bcworkz / Thanks for the great tips!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How can I get the parent menu-item object(not ID) in my nav walker class?](https://wordpress.org/support/topic/how-can-i-get-the-parent-menu-item-objectnot-id-in-my-nav-walker-class/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-can-i-get-the-parent-menu-item-objectnot-id-in-my-nav-walker-class/#post-7127825)
 * bcworkz / I had tried to use get_post_meta($id, $wrong_string, true) as I didn’t
   understand the syntax well, and it did not work yesterday. But simply using get_post_meta(
   $id) or get_post_meta($id, $right_string_that_i_need, true) did work. I appreciate
   for your answer!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Email about vulnerability in WordPress arrived from my hosting provider](https://wordpress.org/support/topic/email-about-vulnerability-in-wordpress-arrived-from-my-hosting-provider/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/email-about-vulnerability-in-wordpress-arrived-from-my-hosting-provider/#post-7029926)
 * Thanks for your answers!
    And I’m sorry that there was my mistake. I have two
   hosting account, and I updated WordPress from version 4.4.1 to 4.4.2 at the last
   week on the one of my site. But the alarm email was arrived for another site 
   of mine. I had not updated to version 4.4.1 on the site. I have updated it for
   now. Silly me!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] [related_products] shortcode displays nothing](https://wordpress.org/support/topic/related_products-shortcode-displays-nothing/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/related_products-shortcode-displays-nothing/#post-7006943)
 * Thanks for the reply!
    I already had tried to add a [product_page] and a [related_products]
   shortcodes on a same page, but nothing was displayed. But the strange thing is
   that it works when I added it with a [add_to_cart_url] shortcode, but not with
   a [product_page].
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Undefined variable order-details-item.php](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/)
 *  [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/#post-6981634)
 * Thank you. I’m developing my theme. I had overrided order-details-item.php file
   in my thems’s woocommerce folder and then the error occured, but now I deleted
   the file in my theme(actually it was not as different as the original woo-template
   file at all) and the error has gone. Mysterious!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Undefined variable order-details-item.php](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/)
 *  [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/#post-6981629)
 * Okay, so what should we do now? ThankS!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Undefined variable order-details-item.php](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/)
 *  [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-order-details-itemphp/#post-6981622)
 * Me too. `Undefined variable: show_purchase_note` occured!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder] How can I disable displaying an attachment image in popup?](https://wordpress.org/support/topic/how-can-i-disable-displaying-an-attachment-image-in-popup/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-disable-displaying-an-attachment-image-in-popup/#post-6929422)
 * No, I don’t mean it. The popup includes an attachment image automatically which
   I don’t include in my content by WP editor on the ‘attachment template’ page (
   attachment.php of a theme).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] The wrong number of comments is displyed](https://wordpress.org/support/topic/the-wrong-number-of-comments-is-displyed-1/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/the-wrong-number-of-comments-is-displyed-1/#post-6914524)
 * The number of ‘All’ comments is less than it of approved comments.
    Switching
   theme makes no difference. And I had deactivated all the other plugins except
   WooCommerce, but this problem still have occurred.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The wrong number of comments is displyed](https://wordpress.org/support/topic/the-wrong-number-of-comments-is-displyed/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/the-wrong-number-of-comments-is-displyed/#post-6911221)
 * Deactivating WooCommerce gets rid of the problem!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme Check] Does "$wp_filesystem->append_contents" or something exist?](https://wordpress.org/support/topic/does-wp_filesystem-append_contents-or-something-exist-1/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/does-wp_filesystem-append_contents-or-something-exist-1/#post-6620137)
 * I need it for two situations.
 * First, I have to generate JavaScript dynamically in overrided Walker & Walker
   Edit classes(as you know, they’re looped files through different menu items),
   but there is no function like `wp_add_inline_script`(enqueue all scripts for 
   different IDs of menu items through the Walker loop and render them simultaneously
   right before footer). So I have to use `file_put_contents` with argument `flags`
   instead to do it. Appending all scripts for different menu IDs to a JS file. (
   Refreshing flushes the file)
 * Second, I have to use `wp_add_inline_style` in the overrided core function of
   my extended tag cloud widget, but I cannot do add_action(‘wp_enqueue_script’)
   for the function that has `wp_add_inline_style` in the core widget function. 
   So I cannot use `wp_add_inline_style`. Also, `wp_add_inline_style` does not work
   there because my overrided function would be executed too late. That’s because
   calculating CSS values, class names(tag-1, tag-2, tag-4, etc. Numbers are appearance
   counts of each tag) and colors of them is done too late after it should have 
   done. So `wp_add_inline_style` is not rendered when it would be. The problems
   are timing and place to be run.
 * If you have any better way to accomplish above things, let me know it please!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme Check] ThemeCheck checks old deleted files(which does not exist on server)](https://wordpress.org/support/topic/themecheck-checks-old-deleted-fileswhich-does-not-exist-on-server/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/themecheck-checks-old-deleted-fileswhich-does-not-exist-on-server/#post-6521301)
 * Thanks for your answer.
 * Yeah, you’re right(__($var, ‘mytheme’)) for the __() function warning. Five of
   WooCommerce Template files has the variable problem and I fixed it with _sprintf_,
   then the problem has gone.
 * But I also don’t understand the first mysterious situation(examining ghost files),
   as I can see your code have nothing to do with that specially. That’s why the
   result is unbelievable to me.
 * I had deleted all the bbpress template files and the files that have any ‘bbpress’
   string on my server then re-uploaded them, but the search forms($file) are still
   displayed and so the note message(bbpress) is. And that is true even when I did
   not upload but only deleted all of the files.
 * Hew~. I don’t know what to do. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme Check] Text domain problems on default HTML 5 searchform code](https://wordpress.org/support/topic/text-domain-problems-on-default-html-5-searchform-code/)
 *  [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/text-domain-problems-on-default-html-5-searchform-code/#post-6135289)
 * There are missing domains here:
 * (1)<?php echo _x( ‘Search for:’, ‘label’ ) ?>
    (2) placeholder=”<?php echo esc_attr_x(”,‘
   placeholder’ ) ?> (3) esc_attr_x( ‘Search’, ‘submit button’ )
 * ==> You should include text-domain there
 * (1) <?php echo _x( ‘Search for:’, ‘label’ **, ‘text-domain’**) ?>
    (2) placeholder
   =”<?php echo esc_attr_x( ”, ‘placeholder’ **, ‘text-domain’**) ?> (3) esc_attr_x(‘
   Search’, ‘submit button’ **, ‘text-domain’** )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Options Framework] $typography_defaults : Array to string conversion problem](https://wordpress.org/support/topic/typography_defaults-array-to-string-conversion-problem/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [11 years ago](https://wordpress.org/support/topic/typography_defaults-array-to-string-conversion-problem/#post-5229604)
 * Thanks, it’s already resolved and I’m closing this topic.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Options Framework] font preview feature please!](https://wordpress.org/support/topic/font-preview-feature-please/)
 *  Thread Starter [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [11 years ago](https://wordpress.org/support/topic/font-preview-feature-please/#post-5544851)
 * OK, I got this feature now, so I’m just marking this topic as Resolved. Only 
   the last thing I need is to enable multiple instances of the plugin(actually 
   I use Options Framework Theme version) for using at both my theme & plugin development
   works.

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/pinkhare/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/pinkhare/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/pinkhare/replies/page/2/?output_format=md)