Skip to content

Instantly share code, notes, and snippets.

@txd159
txd159 / wp_config.php
Created May 17, 2019 10:17 — forked from butlerblog/wp_config.php
Configure WordPress wp_mail function to send through SMTP server http://b.utler.co/Y3
<?php
/*
* Set the following constants in wp-config.php
* These should be added somewhere BEFORE the
* constant ABSPATH is defined.
*/
define( 'SMTP_USER', '[email protected]' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication
@txd159
txd159 / index.php
Created March 24, 2019 16:33 — forked from vielhuber/index.php
get content before / after read more tag outside loop #php #wordpress
<?php
// with wordpress native functions
echo get_extended($p->post_content)['main'];
echo get_extended($p->post_content)['extended'];
// with own function (wordpress own function has problems with enabled p tags)
function wp_split_more($content, $type, $more_html = null) {
$return = [
@txd159
txd159 / activation.php
Created June 17, 2018 15:03 — forked from danielpataki/activation.php
WordPress Custom Database Tables
register_activation_hook( __FILE__, 'my_plugin_create_db' );
function my_plugin_create_db() {
// Create DB Here
}
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶