Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function publish ( $ID, $post=null) {
- $cites = get_post_meta($ID, 'mf2_cite', true);
- error_log("WEBMENTION CITE CHECK ".print_r($cites,true));
- if (empty($cites)) { return; error_log("WEBMENTION CITE NULL"); }
- if (isset($cites['url'])) {
- send_webmention(get_permalink($ID), $cites['url']);
- error_log("WEBMENTION CALLED".get_permalink($ID)." : ".$cites['url']);
- }else{
- foreach ($cites as $cite) {
- if (!empty($cite) && isset($cite['url'])) {
- send_webmention(get_permalink($ID), $cite['url']);
- error_log("WEBMENTIONS CALLED".get_permalink($ID)." : ".$cite['url']);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement