Follow these instructions to get your local WordPress environment up and running.
git clone https://your-repo-url.git
cd link-up-lab
🧹 Why and How to Clean Text When Pasting from Word to WordPress
When you copy content from Microsoft Word or similar word processors and paste it directly into the WordPress WYSIWYG editor, hidden formatting and HTML code can be carried over. This can lead to:
<?php | |
/* | |
* Displays an array of used modules | |
*/ | |
function display_used_modules() { | |
//Name of the flexible content field | |
$flexible_content_field_name = 'modules'; | |
echo 'Used modules <br />'; |
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } |
<?php | |
/** | |
* Noindex protected posts | |
*/ | |
add_filter( 'wp', function() | |
{ | |
global $post; | |
if(!empty($post->post_password)){ | |
add_filter( 'wp_robots', 'wp_robots_no_robots' ); | |
} |
<?php | |
/** | |
* Source https://gist.github.com/tineo/5234972 | |
*/ | |
public static function getWithCurl($url) | |
{ | |
$curl = curl_init(); | |
// Setup headers - I used the same headers from Firefox version 2.0.0.6 | |
// below was split up because php.net said the line was too long. :/ |