Skip to content

Instantly share code, notes, and snippets.

View ozlemcimen's full-sized avatar

Ozlem Cimen ozlemcimen

View GitHub Profile
<?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.
@ozlemcimen
ozlemcimen / flatsome3-custom-post-type-support.php
Created July 22, 2020 13:44 — forked from webseo-onilne/flatsome3-custom-post-type-support.php
Integrate custom post types into Flatsome 3 page builder application using a child theme; providing: (1.) Page Builder Editor support for custom post types, and (2.) Integration with page builder post element components.
<?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
**/
@ozlemcimen
ozlemcimen / .htaccess
Created May 22, 2020 14:59 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#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/
<?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