Support » Plugin: WP ULike - Most Advanced WordPress Marketing Toolkit » How to set the initial value of likes?

  • dev325

    (@dev325)


    I need to initially put 15 likes on all entries. Can this be done?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alimir

    (@alimir)

    Hey @dev325
    This feature does not exist if you mean bulk import.
    However you can make a custom look and use following function to set like&dislikes:

    wp_ulike_meta_counter_value( $post_id, 'post', 'like', wp_ulike_setting_repo::isDistinct( 'post' ) );

    • This reply was modified 9 months ago by Alimir.
    Thread Starter dev325

    (@dev325)

    Hi @alimir
    I see this function gives me the quantity. Do I need to write a function in functions.php and call it before
    wp_ulike('get');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set the initial value of likes?’ is closed to new replies.