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 | |
| include __DIR__.'/wp-load.php'; | |
| // Get all category of wordpress site. | |
| // Categories are actually term located in `wp_terms` table. | |
| $categories = get_terms(); | |
| // This will fetch all categories of all post type of the site. |
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 | |
| /** | |
| * Integrate custom post types into Flatsome 3 page builder application using a child theme. | |
| * | |
| * This will provide: | |
| * | |
| * 1. Page Builder Editor support for custom post types | |
| * 2. Integration with page builder post element components | |
| **/ |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
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 | |
| // PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. | |
| // This script contains passwords. KEEP ACCESS TO THIS FILE SECURE! (place it in your home dir, not /www/) | |
| // ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED ********* | |
| // Info required for cPanel access | |
| $cpuser = "username"; // Username used to login to CPanel | |
| $cppass = "password"; // Password used to login to CPanel |