Title: userlearning2015's Replies | WordPress.org

---

# userlearning2015

  [  ](https://wordpress.org/support/users/userlearning2015/)

 *   [Profile](https://wordpress.org/support/users/userlearning2015/)
 *   [Topics Started](https://wordpress.org/support/users/userlearning2015/topics/)
 *   [Replies Created](https://wordpress.org/support/users/userlearning2015/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/userlearning2015/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/userlearning2015/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/userlearning2015/engagements/)
 *   [Favorites](https://wordpress.org/support/users/userlearning2015/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to add an automatic external function to the POST entries content](https://wordpress.org/support/topic/how-to-add-an-automatic-external-function-to-the-post-entries-content/)
 *  Thread Starter [userlearning2015](https://wordpress.org/support/users/userlearning2015/)
 * (@userlearning2015)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-an-automatic-external-function-to-the-post-entries-content/#post-6135545)
 * **You saved me!**
    Thanks for share your knowledge. For future questions:
 * In **functions.php** I added:
 *     ```
       function nameoffunction( $post_id ) {
       …
       }
       add_action( 'publish_post', 'nameoffunction');
       ```
   
 * And works great, because it runs after making the post.
    I used $post_id because
   in MY function I need to know the URL of the page.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to add an automatic external function to the POST entries content](https://wordpress.org/support/topic/how-to-add-an-automatic-external-function-to-the-post-entries-content/)
 *  Thread Starter [userlearning2015](https://wordpress.org/support/users/userlearning2015/)
 * (@userlearning2015)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-add-an-automatic-external-function-to-the-post-entries-content/#post-6135524)
 * Thanks for your soon response.
    But this call the function when charges the content
   of the post or entry, not? I want that the function run when the post or entry
   is created. To explain it better, is like if it was a thumbnail. If not, I´ll
   have to enter to the page, example /page/post/content1 to run the function and
   I need that runs automatically when the post is created. Anyway, thanks a lot
   =D
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AddToAny Share Buttons] Tag or code to use on specific parts of my THEME](https://wordpress.org/support/topic/tag-or-code-to-use-on-specific-parts-of-my-theme/)
 *  Thread Starter [userlearning2015](https://wordpress.org/support/users/userlearning2015/)
 * (@userlearning2015)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/tag-or-code-to-use-on-specific-parts-of-my-theme/#post-6124049)
 * Can be that I´m using it in localhost with XAMPP?
 * I extracted the HTML CODE of the page and found this:
 *     ```
       <div class="paginasnoindex">
       <p>TITLE EXAMPLE</p>
       <p>Praesent rhoncus sem sapien, in laoreet... TEXT EXAMPLE</p>
       <div class="addtoany_share_save_container addtoany_content_bottom"><div class="addtoany_header">Share it</div><div class="a2a_kit a2a_kit_size_32 addtoany_list a2a_target" id="wpa2a_2"><a class="a2a_button_facebook a2a_counter" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Facebook" rel="nofollow" target="_blank"></a><a class="a2a_button_twitter a2a_counter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Twitter" rel="nofollow" target="_blank"></a><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2F127.0.0.1%2Fsite%2Faboutme%2F&linkname=About" title="Google+" rel="nofollow" target="_blank"></a><a class="a2a_dd addtoany_share_save" href="https://www.addtoany.com/share_save"></a></div></div></div>
       ```
   
 * Can be that…? Or maybe something with CSS?
    I´m trying to find the answer but
   I can´t. Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)