Created
May 11, 2020 21:15
-
-
Save ibndawood/4fddc7aa3d951f4d59ffde504517c8a1 to your computer and use it in GitHub Desktop.
Electro v2 - Simplified Posts Per Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function electro_set_loop_shop_per_page() { | |
$per_page = electro_set_loop_shop_columns() * 4; | |
$per_page = apply_filters( 'electro_loop_shop_per_page', $per_page ); | |
return $per_page; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment