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
<?php | |
function change_post_type_link( $link, $post = 0 ){ | |
if ( $post->post_type == 'product' ){ | |
return home_url( 'product/'. $post->post_name .'/'. $post->ID ); | |
} else { | |
return $link; | |
} | |
} |
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
<?php | |
define( 'CONCATENATE_SCRIPTS', false ); |
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
<?php | |
define ( 'COOKIE_DOMAIN', 'www.domain.com' ); |
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
<?php | |
/** Turns the output of errors on or off, you really never want this on, you should only view errors by reading the log file. */ | |
ini_set('display_errors', WP_DEBUG_DISPLAY); | |
/** Tells whether script error messages should be logged to the server's error log or error_log. */ | |
ini_set('log_errors', 'On'); | |
/** http://us.php.net/manual/en/timezones.php */ | |
ini_set('date.timezone', 'America/Indianapolis'); |
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
<?php | |
define( 'CUSTOM_USER_TABLE', $table_prefix . 'custom_users' ); | |
define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'custom_usermeta' ); |
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
<?php | |
define( 'WP_MEMORY_LIMIT', '256M' ); // for front end | |
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // for admin end |
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
<?php | |
define( 'AUTOSAVE_INTERVAL', 120 ); // in seconds |
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
<?php | |
define( 'FS_CHMOD_FILE', 0755 ); | |
define( 'FS_CHMOD_DIR', 0644 ); |
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
<?php | |
define( 'ALLOW_UNFILTERED_UPLOADS', true ); |
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
<?php | |
define( 'MEDIA_TRASH', true ); |
NewerOlder