This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| <snippet> | |
| <content><![CDATA[ | |
| ->add_field( array( | |
| 'name' => __( '${1:Field Name}', '${2:textdomain}' ), | |
| 'id' => \$prefix . '${3:field_id}', | |
| 'type' => '${4:cmb2_field_type}', | |
| 'desc' => __( '${5:Description of the field.}', '${2:textdomain}' ), | |
| ${6:'options' =>} ${7:${8:array of options or callback function},} | |
| ${9:'attributes' =>} ${10:${11:array of attributes},} | |
| ${12:'default' =>} ${13:'${14:default_value}',} |
| # What if you are trying to migrate a bunch of posts from one site into | |
| # another site that already has content? We'll assume you already have | |
| # a database export of the posts and postmeta you want to migrate. You | |
| # will want to create a database locally to alter the tables to get them | |
| # ready to merge into the production database that already has content. | |
| # You will also need to know the highest `meta_id` and `ID` values from | |
| # the `wp_postmeta` and `wp_posts` tables, respectively. | |
| # First, we need to create new columns in the tables we have locally. To | |
| # do this the right way, we are going to figure out what type of data |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| voices=( | |
| Agnes | |
| Albert | |
| Alex | |
| Alice | |
| Alva | |
| Amelie | |
| Anna | |
| Bad | |
| Bahh |
| <?php | |
| /** | |
| * Modify CMB2-Post-Search-Field to output more than just an id | |
| * @link https://github.com/WebDevStudios/CMB2-Post-Search-field | |
| */ | |
| class CMB2_Search_Get_Extra_Post_Data { | |
| protected static $single_instance = null; |
| <?php | |
| /** | |
| * Change metric from 'ga:pageViews' for top-content widget and shortcode | |
| * | |
| * @link https://ga-dev-tools.appspot.com/query-explorer/ Google's Query Explorer for more info | |
| * | |
| * @param array $params Array of request params | |
| * | |
| * @return array Modified array of request params | |
| */ |
| <?php | |
| /* | |
| Plugin Name: DsgnWrks Instagram Importer - Make Title the Image Date | |
| Plugin URI: http://dsgnwrks.pro/plugins/dsgnwrks-instagram-importer | |
| Description: Set the title of your instagram posts to the date the image was taken | |
| Author URI: http://dsgnwrks.pro | |
| Author: DsgnWrks | |
| Donate link: http://dsgnwrks.pro/give/ | |
| Version: 0.1.0 | |
| */ |
| jQuery(document).ready(function($){ | |
| $('body').on( 'click', '.some-button', function(){ | |
| $.ajax( ajax_endpoint_data.api_url, { | |
| type : 'POST', | |
| dataType : 'json', | |
| data : { | |
| action: 'ajax_action', | |
| some_data: 'some_value' | |
| } |
| INITIALISATION | |
| ============== | |
| load wp-config.php | |
| set up default constants | |
| load wp-content/advanced-cache.php if it exists | |
| load wp-content/db.php if it exists | |
| connect to mysql, select db | |
| load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
| load wp-content/sunrise.php if it exists (multisite only) |