This file contains hidden or 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
| <?php | |
| /** | |
| * Geo Query | |
| * | |
| * This class provides methods to perform geographical queries in WordPress, | |
| * allowing users to filter posts based on geographical parameters like distance. | |
| * | |
| * @package WPSnippets | |
| * @author Owaisansari53 <owaisansari666@yahoo.com> | |
| */ |
This file contains hidden or 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
| import {FC, ReactNode, useCallback, useEffect, useRef} from "react"; | |
| interface InfiniteScrollProps { | |
| load: () => void; | |
| hasMore: boolean; | |
| loader: ReactNode; | |
| children?: ReactNode; | |
| endMessage?: ReactNode; | |
| } |
This file contains hidden or 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
| // Converting Twitter Bootstrap RFS mechanism into typescript to make it available for CSS in JS i.e. (styled components). | |
| // Twitter Bootstrap RFS: https://github.com/twbs/rfs | |
| // Javascript Approach: https://gist.github.com/supposedly/9b9f5de66c2bcbbf5d7469dcec50bfd7 | |
| // Usage | |
| // import rfs from 'rfs'; | |
| // rfs( '20px', 'font-size' ); | |
| // rfs( '1.5rem', 'font-size' ); | |
| // rfs( '1rem', 'margin-bottom' ); |