Hooks & filters Optimizing All in One SEO Pack Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Hooks & filters
April 26, 2010
1:32 pm
Blutarsky
New Member
Forum Posts: 3
Member Since:
April 26, 2010
Offline

Does AIOSEOP exposes it self to Wordpress filters?

I'd like to programmatically add AIOSEOP values to title and description BEFORE the post is saved.
Possible to invoke something like:

add_filter('AIOSEOP_somefilterfunction', 'myfunction', /*priority=*/ 10, /*arguments=*/ 2);

Thanks

April 27, 2010
4:18 am
Blutarsky
New Member
Forum Posts: 3
Member Since:
April 26, 2010
Offline

I have noticed that in aioseop.class.php, some filters are initiated, like

- single_post_title
– aioseop_description
– aioseop_keywords
– aioseop_canonical_url

HOWEVER, although I have written some hooks to those filters in my functions.php code like:

// AIOSEOP
add_filter('aioseop_description','FW_AIOSEOP_description');
add_filter('aioseop_keywords','FW_AIOSEOP_keywords');
add_filter('aioseop_title_page','FW_AIOSEOP_title');

and written specific code to handle those calls:

function FW_AIOSEOP_description($text) {
return "Hello!!";
}
function FW_AIOSEOP_keywords($text) {
return "Blablabla";
}
function FW_AIOSEOP_title_page($text) {
return "Cucù!!";
}

unfortunatelly nothing happens.
Is there a well known limitation on this?

April 29, 2010
11:36 am
Blutarsky
New Member
Forum Posts: 3
Member Since:
April 26, 2010
Offline

Ok it's running properly now using the filters. My fault.

BTW, is anyone reading this forum?

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)