Support Forum

Send PM anchor position

19 Answers

New Answer

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

I can wait a few days :) thanks

MP Mr Papa
Mr Papa
Member

The pm plugin update with the filter should be available now…

the filter you will want to use is ‘sph_pm_inbox_max_height’…

this will be the max size setting in pixels…

make sure you get pm version 1.5.2… and you will need to update to 5.2.1 first (for other reasons)…

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

How and where do I use this “sph_pm_inbox_max_height” filter?

MP Mr Papa
Mr Papa
Member

filters work just like any other wp filter, hook or action…

for simplicity here, lets add this to your spFunctions.php file…

add_filter('sph_pm_inbox_max_height', 'my_pm_height_control');
function my_pm_height_control($height) {
    $height = 600;
    return $height;
}

just change the 600 to whatever you want… this will set a fixed height for all users… please be advised this will override/ignore any personal setting users make in their profile…