• Resolved todaydownloadz

    (@todaydownloadz)


    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://www.ads-software.com/plugins/wp-review/

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

    (@mythemeshop)

    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.

    Plugin Author MyThemeShop

    (@mythemeshop)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to use filter-list.php’ is closed to new replies.