Admin or login to a site:
/admin
For some webhosts, inc. Media Temple:
/wp-admin
All Settings list (wp_options database table):
/wp-admin/options.php
Jetpack modules settings (old admin page):
/wp-admin/admin.php?page=jetpack_modules
Admin or login to a site:
/admin
For some webhosts, inc. Media Temple:
/wp-admin
All Settings list (wp_options database table):
/wp-admin/options.php
Jetpack modules settings (old admin page):
/wp-admin/admin.php?page=jetpack_modules
<?php | |
/** | |
* Shortcode to hide email address from Spam Bots. | |
* | |
* Example: [email]me@mysite.com[/email] | |
* | |
* @uses antispambot() Wordpress native function | |
* | |
* @param array $atts Shortcode attributes. Not used. |
<?php | |
/** | |
* Insert class into body tag for highest level Category or Page. | |
* | |
* Pages and Categories with identical slugs get the same class. | |
* Works on Pages, Posts, and Category achives. | |
* | |
* @return string $top_slug Class name for body tag. | |
*/ | |
function top_cat_or_page_body_class( $class ) { |
/** | |
* Process form data: make PDF, send email; trigged on Form Submit. | |
* | |
* Documentation: | |
* https://docs.google.com/document/d/1O4Y-3VqhhnL-kXPXM3S2XDoQebevIH7UoXQUxpjjtuo/edit | |
* | |
* @param {e} obj Form data (includes user-submitted field values). | |
* | |
* @return void | |
*/ |
<?php | |
/** | |
* Adds modified date to displayed post meta. | |
* | |
* Uses action in theme's /inc/template-tags.php file. | |
* Param values passed by the action hook. | |
* @param int $post_id The ID of the post. | |
* @param array $post_meta An array of post meta information. | |
* @param string $location The location where the meta is shown. | |
*/ |
<?php | |
/* | |
WordPress settings list (serialized data hidden): | |
/wp-admin/options.php | |
Jetpack settings by modules (defualt hidden): | |
/wp-admin/admin.php?page=jetpack_modules | |
List Reusable Blocks (CPT): |
<?php | |
/** | |
* Add files to Media Library; attach files to posts. | |
* | |
* This is for adding files to Media Library already in /uploads/. | |
* If files are elsewhere, adapt script. | |
* | |
* Attempts to attach file to post: | |
* Searches thru post content for the filename. | |
* If a post is found, then uses post ID and publish-date |
<?php | |
// @ see: http://www.justin-cook.com/2006/03/31/php-parse-a-string-between-two-strings/ | |
function get_string_between( $string, $start, $end){ | |
$string = " " . $string; // Convert to string. | |
$ini = strpos( $string, $start ); // Position of start text. | |
if ($ini == 0) { | |
return ""; | |
} | |
$ini += strlen( $start ); // Length of start text. |
<?php | |
/******************************* | |
=Yoast SEO Hooks (includes Premium) | |
******************************/ | |
/* Remove default redirects feature, for posts and term. | |
* @link https://kb.yoast.com/kb/how-to-disable-automatic-redirects/ | |
*/ | |
add_filter('wpseo_premium_post_redirect_slug_change', '__return_true' ); | |
add_filter('wpseo_premium_term_redirect_slug_change', '__return_true' ); |
<?php | |
/* Add image data column to Media Library */ | |
/** | |
* Add columns (file-size) to the Media Library list table. | |
* | |
* @param array $posts_columns Existing array of columns displayed in the Media list table. | |
* @return array Amended array of columns to be displayed in the Media list table. | |
*/ | |
function my_media_columns( $posts_columns ) { | |
$posts_columns['size'] = __( 'Size', 'headecon' ); |