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.

 
You must be logged in to post
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Hooks & filters

Post
New Member

Blutarsky

posts 3

1:32 pm April 26, 2010

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

New Member

Blutarsky

posts 3

4:18 am April 27, 2010

Post edited 8:20 am – April 27, 2010 by Blutarsky
Post edited 8:23 am – April 27, 2010 by Blutarsky
Post edited 8:24 am – April 27, 2010 by Blutarsky


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?

New Member

Blutarsky

posts 3

11:36 am April 29, 2010

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

BTW, is anyone reading this forum?


About the WordPress Developer Forum

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 5
Forums: 23
Topics: 1543
Posts: 3447

Membership:

There are 6357 Members

There are 4 Admins
There are 3 Moderators