CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hooks for wordpress?
Pages: [1]

Author Topic: hooks for wordpress?  (Read 2635 times)

nazzylove

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.x, Wordpress 3.3
  • MySQL version: 5++
  • PHP version: 5++
hooks for wordpress?
March 01, 2012, 09:41:49 am
Does anyone created hooks specific for wordpress ?
« Last Edit: March 01, 2012, 10:18:26 am by nazzylove »

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: hooks for wordpress?
March 02, 2012, 12:22:14 am
I don't think there are Worpress specific hooks, just generic hooks. What is the reason behind your question?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

nazzylove

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.x, Wordpress 3.3
  • MySQL version: 5++
  • PHP version: 5++
Re: hooks for wordpress?
March 18, 2012, 11:13:54 pm
I thought I could use hooks to modify/extend wordpress -civi in the same manner as wordpress drupal. is that possible?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: hooks for wordpress?
March 19, 2012, 12:08:10 am
In this tutorial you will find ways to extend and customize CiviCRM:
http://book.civicrm.org/developer/
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: hooks for wordpress?
March 19, 2012, 04:21:13 am
Quote from: nazzylove on March 18, 2012, 11:13:54 pm
I thought I could use hooks to modify/extend wordpress -civi in the same manner as wordpress drupal. is that possible?

I do not think there are hooks for WordPress at all at this time.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: hooks for wordpress?
March 19, 2012, 07:37:08 am
I am not thinking, the hooks use the Drupal modules, so I am not sure how these would be tackled with Wordpress.....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: hooks for wordpress?
March 19, 2012, 10:39:19 am

Some development work still needs to be done to get hooks to function in wordpress. If a wordpress developer(s) wants to explore this and try to get it working, ping us on IRC and we can help u get started. Its quite close and just a matter of stiching the final pieces, IMO

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zorgalina

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: hooks for wordpress?
November 08, 2013, 08:52:02 am
I see this was posted last year - is this functionality any closer, or possible? I am interested, too, in hooks for WP

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: hooks for wordpress?
November 08, 2013, 05:03:56 pm

if you use an extension to extend civicrm, all hooks are available.

Civi hooks are also avaliable to all WP plugins. the restriction is, the hook should be called:

wordpress_civicrm_pre etc (i.e. use wordpress as the module name), which means only one of these can be implemented for any site. We strongly encourage folks use civicrm extensions to extend civi

regards

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: hooks for wordpress?
November 09, 2013, 04:01:44 am
To continue along the lines of Lobo's comment: extensions for CiviCRM should be CMS-independent and created according to the extension instructions:
http://wiki.civicrm.org/confluence/display/CRMDOC/Create+an+Extension
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • hooks for wordpress?

This forum was archived on 2017-11-26.