{"id":37561,"date":"2013-11-17T10:33:30","date_gmt":"2013-11-17T09:33:30","guid":{"rendered":"https:\/\/promocionalia.es\/web\/2013\/11\/17\/implementar-boton-donar-de-paypal-en-wordpress\/"},"modified":"2024-05-07T18:24:51","modified_gmt":"2024-05-07T16:24:51","slug":"implementar-boton-donar-de-paypal-en-wordpress","status":"publish","type":"post","link":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/","title":{"rendered":"Implementar Bot\u00f3n Donar de PayPal en WordPress"},"content":{"rendered":"<p><p><a href=\"http:\/\/www.wordpress-joomla-drupal.es\/wordpress\/wp-content\/uploads\/2013\/02\/paypal_logo.png\"><img decoding=\"async\" class=\"size-medium wp-image-139 alignleft alignleft size-full wp-image-711\" alt=\"paypal logo-300x154\" src=\"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png\" height=\"154\" width=\"300\" style=\"margin-left: 10px; margin-right: 10px; float: left;\" \/><\/a>Existen diversos plugins que nos permiten incrustar las donaciones de PayPal en nuestro WordPress, pero a veces nos gusta m\u00e1s tener incrustadas estas cosas mediante c\u00f3digo. Entre otros motivos, porque nuestro sitio web ser\u00e1 mucho m\u00e1s ligero que si lo llenamos con plugins para todo.<\/p>\n<p>Esta es una manera de incrustar las donaciones de PayPal mediante&nbsp;c\u00f3digo&nbsp;en nuestro WordPress.&nbsp;Para usarlo s\u00f3lo hay que a\u00f1adir al archivo&nbsp;functions.php del theme lo siguiente:<\/p>\n<pre>function donate_shortcode( $atts, $content = null) { global $post;extract(shortcode_atts(array( 'account' =&gt; 'tu mail de paypal', 'for' =&gt; $post-&gt;post_title, 'onHover' =&gt; '', ), $atts)); if(empty($content)) $content='Make A Donation'; return '&lt;a title=\"'.$onHover.'\" href=\"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_xclick&amp;business='.$account.'&amp;item_name=Donation for '.$for.'\"&gt;'.$content.'&lt;\/a&gt;'; } add_shortcode('donate', 'donate_shortcode');<\/pre>\n<p>Adem\u00e1s de esto, hay que agregar este c\u00f3digo donde se quiera que aparezca el bot\u00f3n \u201cDonar\u201d:<\/p>\n<pre>[donate] [donate]Donar ahora[\/donate] [donate account=\"<a href=\"mailto:tu@correo.com\">tu@correo.com<\/a>\" onHover=\"Gracias\" for=\"Titulo\"] [donate account=\"<a href=\"mailto:tu@correo.com\">tu@correo.com<\/a>\" onHover=\"Gracias\" for=\"Titulo\"]Donar ahora[\/donate]<\/pre>\n<p>El primer fragmento de c\u00f3digo cuenta con tres atributos que se deben modificar:&nbsp;<strong>$account<\/strong>,&nbsp;<strong>$onHover<\/strong>&nbsp;y&nbsp;<strong>$for<\/strong>.&nbsp;<strong>$account<\/strong>&nbsp;es la cuenta de correo de PayPal que recibir\u00e1 las donaciones,&nbsp;<strong>$onHover<\/strong>&nbsp;define el t\u00edtulo que se mostrar\u00e1 al poner el cursor sobre el bot\u00f3n y&nbsp;<strong>$for<\/strong>&nbsp;es el titulo de la donaci\u00f3n, que por defecto es el mismo t\u00edtulo que el post que est\u00e9 viendo el usuario.<\/p>\n<address>&nbsp;Fuente: todowp.org<\/address><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Existen diversos plugins que nos permiten incrustar las donaciones de PayPal en nuestro WordPress, pero&hellip;<\/p>\n","protected":false},"author":2,"featured_media":37562,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rs_blank_template":"","rs_page_bg_color":"","slide_template_v7":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-37561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sin-categoria"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA\" \/>\n<meta property=\"og:description\" content=\"Existen diversos plugins que nos permiten incrustar las donaciones de PayPal en nuestro WordPress, pero&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"PROMOCIONALIA\" \/>\n<meta property=\"article:published_time\" content=\"2013-11-17T09:33:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-07T16:24:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"154\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"editor Web\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"editor Web\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/\"},\"author\":{\"name\":\"editor Web\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#\\\/schema\\\/person\\\/178e232c6192997d47707c6f0c4ef5ab\"},\"headline\":\"Implementar Bot\u00f3n Donar de PayPal en WordPress\",\"datePublished\":\"2013-11-17T09:33:30+00:00\",\"dateModified\":\"2024-05-07T16:24:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/\"},\"wordCount\":196,\"publisher\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/paypal_logo-300x154.png\",\"inLanguage\":\"es\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/\",\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/\",\"name\":\"Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/paypal_logo-300x154.png\",\"datePublished\":\"2013-11-17T09:33:30+00:00\",\"dateModified\":\"2024-05-07T16:24:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/paypal_logo-300x154.png\",\"contentUrl\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2013\\\/11\\\/paypal_logo-300x154.png\",\"width\":300,\"height\":154},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/implementar-boton-donar-de-paypal-en-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Implementar Bot\u00f3n Donar de PayPal en WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#website\",\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/\",\"name\":\"PROMOCIONALIA\",\"description\":\"m\u00e1s que inform\u00e1tica\",\"publisher\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#organization\",\"name\":\"PROMOCIONALIA\",\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PROMOCIONALIA-logo2020-topweb300-150dpi-light-trans.png\",\"contentUrl\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/PROMOCIONALIA-logo2020-topweb300-150dpi-light-trans.png\",\"width\":350,\"height\":43,\"caption\":\"PROMOCIONALIA\"},\"image\":{\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/#\\\/schema\\\/person\\\/178e232c6192997d47707c6f0c4ef5ab\",\"name\":\"editor Web\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g\",\"caption\":\"editor Web\"},\"url\":\"https:\\\/\\\/promocionalia.es\\\/web\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"es_ES","og_type":"article","og_title":"Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA","og_description":"Existen diversos plugins que nos permiten incrustar las donaciones de PayPal en nuestro WordPress, pero&hellip;","og_url":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/","og_site_name":"PROMOCIONALIA","article_published_time":"2013-11-17T09:33:30+00:00","article_modified_time":"2024-05-07T16:24:51+00:00","og_image":[{"width":300,"height":154,"url":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png","type":"image\/png"}],"author":"editor Web","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"editor Web","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#article","isPartOf":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/"},"author":{"name":"editor Web","@id":"https:\/\/promocionalia.es\/web\/#\/schema\/person\/178e232c6192997d47707c6f0c4ef5ab"},"headline":"Implementar Bot\u00f3n Donar de PayPal en WordPress","datePublished":"2013-11-17T09:33:30+00:00","dateModified":"2024-05-07T16:24:51+00:00","mainEntityOfPage":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/"},"wordCount":196,"publisher":{"@id":"https:\/\/promocionalia.es\/web\/#organization"},"image":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png","inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/","url":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/","name":"Implementar Bot\u00f3n Donar de PayPal en WordPress - PROMOCIONALIA","isPartOf":{"@id":"https:\/\/promocionalia.es\/web\/#website"},"primaryImageOfPage":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png","datePublished":"2013-11-17T09:33:30+00:00","dateModified":"2024-05-07T16:24:51+00:00","breadcrumb":{"@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#primaryimage","url":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png","contentUrl":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2013\/11\/paypal_logo-300x154.png","width":300,"height":154},{"@type":"BreadcrumbList","@id":"https:\/\/promocionalia.es\/web\/implementar-boton-donar-de-paypal-en-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/promocionalia.es\/web\/"},{"@type":"ListItem","position":2,"name":"Implementar Bot\u00f3n Donar de PayPal en WordPress"}]},{"@type":"WebSite","@id":"https:\/\/promocionalia.es\/web\/#website","url":"https:\/\/promocionalia.es\/web\/","name":"PROMOCIONALIA","description":"m\u00e1s que inform\u00e1tica","publisher":{"@id":"https:\/\/promocionalia.es\/web\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/promocionalia.es\/web\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/promocionalia.es\/web\/#organization","name":"PROMOCIONALIA","url":"https:\/\/promocionalia.es\/web\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/promocionalia.es\/web\/#\/schema\/logo\/image\/","url":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2023\/08\/PROMOCIONALIA-logo2020-topweb300-150dpi-light-trans.png","contentUrl":"https:\/\/promocionalia.es\/web\/wp-content\/uploads\/2023\/08\/PROMOCIONALIA-logo2020-topweb300-150dpi-light-trans.png","width":350,"height":43,"caption":"PROMOCIONALIA"},"image":{"@id":"https:\/\/promocionalia.es\/web\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/promocionalia.es\/web\/#\/schema\/person\/178e232c6192997d47707c6f0c4ef5ab","name":"editor Web","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb773be3fa35d66440a39cd015ecd02281424c3ac9e0b7142996b48d8762d099?s=96&d=mm&r=g","caption":"editor Web"},"url":"https:\/\/promocionalia.es\/web\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/posts\/37561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/comments?post=37561"}],"version-history":[{"count":0,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/posts\/37561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/media\/37562"}],"wp:attachment":[{"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/media?parent=37561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/categories?post=37561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promocionalia.es\/web\/wp-json\/wp\/v2\/tags?post=37561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}