WordPress.org

Ready to get started?Download WordPress

Forums

WP Review
[resolved] how to use filter-list.php (3 posts)

  1. todaydownloadz
    Member
    Posted 5 months ago #

    hi downloaded the filter-list.php and uploaded it to plugin directory and did the changes like review color code and position. but there is no changes can be seen on new post editor.

    and also to position i need always use the shortcode which is more customizable. so in php what value i should use? only "bottom" is mentioned as defaults.

    please help me to solve this situation. im stucked.. what would i missed in the process possibly ?

    thank you

    https://wordpress.org/plugins/wp-review/

  2. MyThemeShop
    Member
    Plugin Author

    Posted 5 months ago #

    Hi, you need to copy any filter which you want to use in functions.php file of your theme.

    Using only shortcode feature - This feature is still in development and will be added in next update. We are going to release next update in two or three days, so stay tuned.
    thanks.

  3. MyThemeShop
    Member
    Plugin Author

    Posted 5 months ago #

    Hi, can you please give a try to this code in functions.php file
    This code will set custom position i.e. shortcode for all reviews and then hide the position option in post editor.

    // Set default Shortcode location for all old reviews
    function mts_new_review_location($position, $id) {
    $position = 'custom';
    return $position;
    }
    add_filter( 'wp_review_location', 'mts_new_review_location', 10, 2 );
    
    // Set default Shortcode location for new reviews
    function mts_new_default_review_location($position) {
    $position = 'custom';
    return $position;
    }
    add_filter( 'wp_review_default_location', 'mts_new_default_review_location' );
    
    // Hide location field in "item" meta box from post editor
    function mts_hide_item_metabox_fields($fields) {
    unset($fields['location']);
    return $fields;
    }
    add_filter( 'wp_review_metabox_item_fields', 'mts_hide_item_metabox_fields' );

    Hope this helps, thanks.

Reply

You must log in to post.

About this Plugin

About this Topic