- a/o 2015-05-27 *
—
- Restart with cmd-R or cmd-D
- Erase drive / 3x if second-handk
- Reinstall MacOS
<?php // Save ACF Testimonials to post content | |
function ar_save_testimonials_to_content( $post_id ) { | |
// Only run this code if we're on a particilar post / page | |
if( $post_id === 1234 ) { | |
// Start an output buffer | |
ob_start(); | |
// Loop over our testimonials |
<?php | |
/** | |
* Post a message to Slack from WordPress | |
* | |
* @param string $message the message to be sent to Slack | |
* @param string $channel the #channel to send the message to (or @user for a DM) | |
* @param string $username the username for this bot eg : WordPress bot | |
* @param string $icon_emoji the icon emoji name for this bot eg :monkey: | |
* |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
// width as a readable fraction | |
$whole : 100%; | |
$half : 50%; | |
$third : 33.3333%; | |
$quater : 25%; | |
$sixth : 16.6666%; | |
// gallery breakpoints | |
$gallery-breakpoint-small: em(0); | |
$gallery-breakpoint-medium: em(640); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
if (have_rows('my_repeater_field')) { | |
$mycounter = 0; | |
while (have_rows('my_repeater_field')) { | |
the_row(); | |
$mycounter++; | |
echo $mycounter; | |
} | |
} | |
?> |
<?php | |
function ar_custom_project_endpoint($data) { | |
$args = array( | |
'posts_per_page' => -1, | |
'offset' => 0, | |
'category' => '', | |
'category_name' => '', | |
'orderby' => 'title', | |
'order' => 'ASC', |
<?php | |
function ar_register_project_meta() { | |
register_api_field( | |
'project', | |
'meta', | |
array( | |
'get_callback' => 'ar_register_project_meta_get', | |
) | |
); | |
} |
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed and saved. | |
* | |
* Add your own CSS or Less to fully customize Atom. | |
* If you are unfamiliar with Less, you can read more about it here: | |
* http://lesscss.org | |
*/ |